cara set focus kursor dalam datagridview dengan vb.net

 

 

Public Class setfocus_datagridview

Private Sub DGV_CellEndEdit (ByVal sender As Object, ByVal e As System. Windows. Forms. DataGridViewCellEventArgs) Handles DGV.CellEndEdit

If e.ColumnIndex = 0 Then
DGV.CurrentCell = DGV(1, DGV.CurrentCell.RowIndex)
SendKeys.Send("{UP}")

End If
End Sub
End Class