I have an application with a DataGridView on it and I would like to position the rows such that a specific row is at the top of the list.
I don't want a sort, I want a way to programmatically tell the DataGridView "scroll to the Nth row."
Any ideas?
Max value, i.e. 2,147,483,647. The DataGridView's RowCount cannot hold a number more than this because it's an integer. So, you can possibly say that limit for datagridview rows is 2 Billion.
Use the GetRowCount and GetRowsHeight methods to determine the number of rows or the combined height of rows in a particular state.
How about FirstDisplayedScrollingRowIndex
?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With