James,
Sorry I didn't understand the question. Calculating visible rows count doesn't have anything to do with where the record pointer is. Grid might even be unbound. You have rowheight, headerheight, height, sysmetric() to calculate it.
Cetin
>Cetin --
>
>A question about a message of yours from half a year ago.
>
>I asked about the use of DynamicFontShadow to determine which is the top record displayed. You suggested calculating it ...
>
>However, I don't think that works when the user has scrolled so that the active record is off the screen, does it? In my particular case, the user has scrolled down along way (the active record is way off the top of the screen). So, recno() doesn't point to a record on the screen ... and using ActivateCell, as I had been doing, jumps the grid back to the current record in the grid.
>
>Any suggestion?
>