I think I have to obtain the index of the detail row that is selected by the user (I don't know how)
Once I have that, how do I get the content of a particular cell of the selected detail row?
Thanks.
Hi,
The Index of a row is not a very reliable way to access a row, because the Index can change in any number of ways. Sorting, filtering, adding, or deleting rows can change the Index.
If you just want to retrieve data from a selected row, then you can do this like so:
if (grid.Selected.Rows.Count > 0)
grid.Selected.Rows[0].Cells[columnKey].Value
Hi Mike, but I need to retrieve the data from whichever child row might be active (or selected) How can I determine whether a child row is selected or has focus and how could I access the content of a certain cell of that child row?