Use the
RowIndex
and
ColumnIndex
properties of the
DataGridViewCellEventArgs[
^] instance:
Private Sub rapor_CellValueChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles rapor.CellValueChanged
If e.ColumnIndex <> 2 Then Exit Sub
rapor.CurrentCell = rapor.Rows(e.RowIndex).Cells(2)
rapor.Rows(e.RowIndex).Selected = True
End Sub