Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
725
How do I access the content of a cell in the children rows?
posted

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.

Parents
  • 469350
    Offline posted

    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

Reply Children