Re: [2005] How to tell what row is selected on DataGridView
you can use the SelectedRows property, eg:
Code:
Private Sub DataGridView1_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGridView1.SelectionChanged
If DataGridView1.SelectedRows.Count > 0 Then
Console.WriteLine(DataGridView1.SelectedRows(0).Index)
End If
End Sub
~ if a post is resolved, please mark it as [Resolved] protected string get_Signature(){return Censored;} [vbcode][php] please use code tags when posting any code [/php][/vbcode]