Другой способ, если вам нужно отслеживать взаимодействие пользователя с DataGridView:
В моем случае есть дополнительная обработка в некоторых универсальных функциях, которые используют координаты столбца и строки Me.I_SelCol и Me.I_SelRow, но я не показал это, потому что это не относится к OP.
С уважением,
Rob
Private Sub I_DataGridView_CurrentCellChanged(sender As Object, e As EventArgs) Handles I_DataGridView.CurrentCellChanged
If Me.I_DataGridView.CurrentCellAddress.X < 0 Or Me.I_DataGridView.CurrentCellAddress.Y < 0 Then Exit Sub
' The Windows Me.I_DataGridView object will have already deselected the current cell and selected the
' new cell as per user navigation using mouse or cursor keys. We just need to store the current
' co-ordinates for the currently selected cell.
Me.I_SelCol = Me.I_DataGridView.CurrentCellAddress.X
Me.I_SelRow = Me.I_DataGridView.CurrentCellAddress.Y
Exit Sub