[ACCEPTED]-How to implement autoscroll in DataGridView?-datagridview
try this:
dataGridView1.FirstDisplayedScrollingRowIndex = 15;
See the documentation of DataGridView.FirstDisplayedScrollingRowIndex
.
0
This one scrolls to the selected row without 1 put it on top.
dataGridView1.CurrentCell = dataGridView1.Rows[index].Cells[0];
I guess if you select a row programatically, it 2 will scroll to it.
or you can use FirstDisplayedScrollingRowIndex
or FirstDisplayedCell
member 1 to make it first cell on the top left
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.