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
95
XamDataGrid - Selected Child record
posted

I have a Hierarchical data structure that is a simple parent/child relationship.  I need to be able to access the selected child record.

How do I access the selected child record of the xamDataGrid.

Seems like it should be a snap to do, but for the life of me I can't seem see how that would be done.

Parents
  • 9836
    posted

    Just in case you need to obtain the record when selected, you can use the RecordActivated or the SelectedItemChanged events of the grid and check  the record. There are couple of helpfull properties  that can be used e.g.HasChildren, NestingDepth, ParentDataRecord etc. If you need to obtain all of the selected child records e.g. on a button click or any other action than you may consider using the SelectedItems.Records collection of the grid. It is possible to iterate through the records and check the same properties.

    Let me know if you have any questions with this matter.

Reply Children