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
1230
XamGrid - How to make a row not selectable
posted

I have data displayed in a hierarchical fashion with a parent row that shows summarized data and the child rows are the detail data.  Each child consists of two records that appear as a single record through the use of cell merging.  I do not ever want the second detail record to be selectable.  I have been intercepting the SelectedRowsCollectionChanged event to prevent the second detail row in the merged row from being selected.  It works most of the time but it would be easier if I could just make a row not selectable.

One of the problems I am encountering is the ParentRow property of the detail data row points to a ColumnLayoutHeaderRow and not the summarized data row which is really the parent of these child rows.  From the detail row, how do I access the summarized data row and not the ColumnLayoutHeaderRow?  I believe a Parent Row of a child band row should not be the header row of the child band but the actual parent data row?

Parents Reply Children
No Data