Search This Blog

Tuesday, August 4, 2015

Scroll to selected index DataGridView

C# > DataGridViewFirstDisplayedScrollingRowIndex 

Setting this property raises scroll event to match selected index.


Example


dataGridView1.FirstDisplayedScrollingRowIndex = dataGridView1.Rows.Count - 1;