How to set datagrid to column 0 row 0

How do I set a datagrid so that the focussed or active grid or the cursor is at 0,0 in visual basic ?.
LVL 1
Netlink2Asked:
Who is Participating?
 
Ryan ChongConnect With a Mentor Commented:
Try:

Private Sub Command1_Click()
    DataGrid1.Row = 0
    DataGrid1.col = 0
    DataGrid1.SetFocus
End Sub
0
 
IceColdasConnect With a Mentor Commented:
Dim myCell As New DataGridCell()
myCell.RowNumber = 0
myCell.ColumnNumber = 0
dataGrid1.CurrentCell = myCell
dataGrid1.SetFocus
0
All Courses

From novice to tech pro — start learning today.