Hi @Giovanni Conte ,
Perhaps you can try using the DataGridView.SelectionChanged Event to implement the RowChange event in VB6.
Private Sub DataGridView1_SelectionChanged(sender As Object, e As EventArgs) Handles DataGridView1.SelectionChanged
If DataGridView1.SelectedRows.Count > 0 Then
Dim selectedRow As DataGridViewRow = DataGridView1.SelectedRows(0)
Dim rowIndex As Integer = selectedRow.Index
'Take further action
End If
End Sub
Best Regards.
Jiachen Li
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.