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.
Never mind. I found this help doc https://www.infragistics.com/help/wpf/xamdatapresenter-iterate-through-the-records-collection. So I know how to iterate through records/child records now.
But I have a new question. How can I change both Parent/Child records' header back color, row highlight color, backgroud color etc. programmatically, i.e. in C# code?
.
I am new to XML and have just started to use 2017.1 XamDataGrid and it appears to be very difficult to get around and writing code to do just about anything. For example, I have a 2-level hiearchical dataset, need to enable certain child records for editing if one of the field value of the child record has a value of true. I need to set this up during XamDataGrid initial loading. Can you please send me an example how this should be done? Thanks Steve
I was wondering if you had ever figured this out.
We have a requirement where we need to be able to select multiple items as well as items at different 'levels'.
For instance, my hierarchy is three levels deep. I might need to select a level 1 item and multiple level 2 items not necessarily under the same level 1 item.
Thanks
As I said in my previous comment, I was able to get this hierarchical data to display correctly but I'm having a problem selecting rows within my XamDataGrid when there is a hierarchy of records displayed. I set the 'SelectionTypeRecord' property in my FieldLayoutSettings to "Extended" and I'm able to multi-select child records in any of my top-level records. But once I select multiple records under one parent node, I can’t select any other child records in the other nodes. What am I missing here? Anyone have any ideas?
I have also tried to set the SelectionTypeRecord property of the child Layout in the FieldLayoutInitialized method of XamDataGrid like below but of no use.XamDataGrid1.FieldLayouts[1].Settings.SelectionTypeRecord = Infragistics.Windows.Controls.SelectionType.Extended;XamDataGrid1.FieldLayouts[1].Settings.SelectionTypeField = Infragistics.Windows.Controls.SelectionType.Extended;XamDataGrid1.Records.FieldLayout.Settings.SelectionTypeRecord = Infragistics.Windows.Controls.SelectionType.Extended;
I have found the problem.
I am using a control that derives from xamDataGrid. It seems that there is some processing going on in a SelectedItemsChanged handler that is causing me to only see the parent.
Thank you for your help.