Reputation: 4883
can anyone tell me how I can get the first displayed row on a datagridview?. I need to get the first row whenever the user scrolls on the datagridview, whether the user has selected the row or not.
Can anyone tell me if this can be done?.
Thanks.
Upvotes: 0
Views: 2594
Reputation: 14059
Use the DataGridView.FirstDisplayedScrollingRowIndex
property.
And make sure all rows have the same height.
Upvotes: 3