I am using VS 2003..
I want to select a row programatically, like the datagrid arrow would point and scroll to the selected or highlighted row..
I tried grdBrowse.select(i) but it only highlights and doesnt scroll down.
so far here's what I have:
Dim _id As Integer
Dim i As Integer
_id = "123"
For i = 0 To theData.Tables("tbl1").Rows.Count - 1
If grdBrowse(i, 0).ToString = _id Then
grdBrowse.Select(i)
End If
Next
The code above selects and highlights the row, but the arrow doesn't scroll down to that selected row? How can I make it scrolldown and make the arrow point to the selected row? Any suggestions please?