Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
lnRowsHeght = thisform.Grid1.Height - ;
thisform.Grid1.HeaderHeight - ;
IIF(BITTEST(thisform.Grid1.ScrollBars,0),SYSMETRIC(14),0)
MESSAGEBOX([Rows showed :]+TRANSFORM(ROUND(lnRowsHeght/thisform.Grid1.RowHeight,0)))
Is it possible to tell, at run time (dynamically) how many rows are visible in my grid being displayed?
WITH This
*** Calculate the maximum number of rows in the grid
lnMaxRows = INT( ( .Height - .HeaderHeight - ;
IIF( INLIST( .ScrollBars, 1, 3 ),;
SYSMETRIC( 8 ), 0 ) ) / .RowHeight )
ENDWITH