How to scroll to the end of a DataGridView in C# and VB.NET

To scroll to the end of a DataGridView in C# and VB.NET you can use the following snippet.

Sample Vb.NET / C#

dataGridView1.FirstDisplayedCell =
dataGridView1.Rows[dataGridView1.Rows.Count - 1].Cells[0];

Please Share us:
Please rate this snippet

2 thoughts on “How to scroll to the end of a DataGridView in C# and VB.NET

Leave a Reply