Problem Autoscrolling to last row of Datagridview

Williamdor

New member
Joined
Sep 5, 2014
Messages
2
Programming Experience
10+
As my datagridview fills and the autoscrolling control appears I want to have the last row of the datagridview to be displayed by default. Currently I have to manually scroll to the last row, but want this handled automatically.
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,579
Location
Sydney, Australia
Programming Experience
10+
Set the FirstDisplayedScrollingRowIndex property to the index of the row that you want to ensure is scrolled into view. If you want to scroll to the bottom then use the index of the last row, i.e. (RowCount - 1)
 
Top Bottom