Hi, I am trying to get the row heaer selected but for some rason it does not work. (This little black arrow on the row selection on the left)
Here is my code that does the job and selects the row but not row header..
For Each row As DataGridViewRow In Me.DataGridView1.Rows
If selectedLineNo = row.Cells.Item("LINENO").Value Then
Me.DataGridView1.FirstDisplayedScrollingRowIndex = row.Index
Me.DataGridView1.CurrentCell = Me.DataGridView1.Rows(row.Index).Cells(0)
Me.DataGridView1.Rows(row.Index).Selected = True
Can you please tell me where is the problem?
Thank you for your answer