Jump to content


bug in function BestFitColumn


  • Please log in to reply
No replies to this topic

#1 user22

user22
  • Members
  • 172 posts
  • Gender:Male
  • Location:Linz / Austria

Posted 08 April 2012 - 10:07 PM

Hi Boki,

using BestFitColumn (NxCustomGridControl.pas) with DbGrid doesn't work correct, because you use ... CellValue := GetDrawText(Index, i); ... and for rows outside the visible area the return value is always an empty string (at least in my IDE). So it can't calculate the biggest width correctly if OnlyVisible is set to false and there are more data rows than visible rows and BestFitColumn is called immediately after dataset is activated.

can you check this please?

regards,
Helmut




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users