Scroll to the last row of a datagridview - Visual Basic .NET

Tags: VB.NET, VB 2008, VB 2010, VB 2012, VB 2013

The following code will scroll datagridview to the last row


DataGridView1.FirstDisplayedScrollingRowIndex = DataGridView1.Rows.Count - 1

The following code will scroll datagridview to a specific row index


DataGridView1.FirstDisplayedScrollingRowIndex = 10


Share This

Home | About | Contact | Privacy Policy

Copyright visual-basic-tutorials.com 2017 - All Rights Reserved.