with oGrid lnRows = ( .Height- ; (.HeaderHeight+; IIF(.Scrollbars%2 = 1,sysmetric(8),0)+; sysmetric(11)*2) )/.rowHeight endwith