ramnujs
Well-known member
Is there a grid control in vb.net that would allow me to retrieve the current row and column of the cell being clicked?
Private Sub DataGrid1_CurrentCellChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGrid1.CurrentCellChanged
MessageBox.Show("Col is " & DataGrid1.CurrentCell.ColumnNumber _
& ", Row is " & DataGrid1.CurrentCell.RowNumber _
& ", Value is " & DataGrid1.Item(DataGrid1.CurrentCell))
End Sub