First row number in a datagrid

  • 17 years ago

    I need to know the number of the row visible inside the data grid, this is exactly like what the


    DataGrid.FirstVisibleColumn


    property does, but I want to do it for the “FirstVisibleRow”. This is NOT necessarily the first row in the dataSource, as when the user scrolls to some arbitrary point in the dataSource (say dataSet or dataTable) I want to be able to programmatically get hold of the first row that is visible within the dataGrid.


    Your help is most appreciated.


    Thank you.

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.” - Rick Osborne