Determining the first visible row in a grid

I have a virtual grid. Normally, to determine the top row in a grid that has a vertical scrollbar, I use grid.ViewLayout.VisibleCellsRange.Top. This works fine unless the grid only has row headers and no data cells. In this case, ViewLayout.VisibleCellsRange has an empty range. How can I determine which row header is the top one at the currently scrolled position?

1 Reply

AD Administrator Syncfusion Team October 21, 2006 06:00 AM UTC

Try checking grid.TopRowIndex to see if that gives you what you need.

Loader.
Up arrow icon