I am trying to get one cell from the first selected row in a datagrid.
This does not work
strPreReconID = dgAssign.SelectedRows(0).Cells(2).Value.ToString
where strPreReconId is a declared string
I also tried square brackets. I get a
Index was out of range. Must be non-negative and less than the size of the collection.
My collection is 8 columns