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