[Migrated content. Thread originally posted on 10 April 2006]
Is there an internal value where the maximum NUM-ROWS of a paged grid can be acquired when the form is resized, keeping in mind that the grid can have HSCROLL TRUE/FALSE ?I have the following situation :
A grid has the following attributes in design time : LINES 44,00 - NUM-ROWS 22.
When the form resizes, I calculate the actual quantity of records to be filled as follow : COMPUTE NUM-RECORDS ROUNDED = (GRID-LINES / 2) - 1.
In most cases, this works fine, but others it doesn't.
My laptop has a resolution of 1440 by 900 pixels.
When the form resizes, inquiring the grid in debug, it has 73,00 lines. The grid first shows like in design-time, but then the form resizes automaticly and NUM-RECORDS becomes 36 => (73 / 2) - 1
Instead of 36, the grid shows 35 records to fill... so the logic of filling the grid isn't correct anymore.
Any ideas ?