I know that e.Item.Cells(0).Text will return the contents of the first cell in the row of a DataGrid, but my question is what if I don't know what cell they clicked on?
If I could get the index of the cell the user clicked on, I could do this:
How do I get the Index of the cell clicked?
If I could get the index of the cell the user clicked on, I could do this:
Code:
Dim intCellIndexClicked As Integer
intCellIndexClicked = [get me the cell index]
Dim strContentsOfClickedCell As String = _
e.Item.Cells(intCellIndexClicked).Text
How do I get the Index of the cell clicked?