Hi Roland.
How to get programaticaly the number of rows displayed in a grid control ?If you are talking about the number of rows in the entire grid, RECCOUNT( This.RecordSOurce ) will do that for you. If you are talking about the number of rows in the visible portion of the grid, try this:
lnMaxRows = INT( ( .Height - .HeaderHeight - ;
IIF( INLIST( .ScrollBars, 1, 3 ), SYSMETRIC( 8 ), 0 ) ) / .RowHeight )