When you add items to the DataGridView1 it will automatically select the 1st row, even if you use DataGridView1.ClearSelection afterwards, the 1st row is still selected!
However, my problem is that if you use ::
DataGridView1.ClearSelection()
DataGridView1.Rows.Item(2).Selected = True
DataGridView1.FirstDisplayedScrollingRowIndex = 2
Still the 1st row is selected!
Anyone knows about it?
However, my problem is that if you use ::
DataGridView1.ClearSelection()
DataGridView1.Rows.Item(2).Selected = True
DataGridView1.FirstDisplayedScrollingRowIndex = 2
Still the 1st row is selected!
Anyone knows about it?