Tag: c# datagrid scroll to row
-
Scrolling a datagrid to a specific row (or to the bottom)
There are 2 ways you can do this. In the first method, you can derive a class from datagrid and use the protected method GetVScroll(). In the second method, you can just do this : [csharp]this.dataGridView1.CurrentCell = this.dataGridView1[0, rowIndex];[/csharp] If you want to scroll to the bottom then do this : [csharp]this.dataGridView1.CurrentCell = this.dataGridView1[0, this.dataGridView.Rows.count…