Datagrid

How do I programmatically get the first visible row number in the datagrid?

Loader.
Up arrow icon