Hello,
I am applying a filter on my XamDataGrid columns, this allows me to show or hide columns in the datagrid,
My objects has child objects that are displayed as nestedContent when clicking on the expension sign "+"
But once I filter my columns using the code bellow:
//Begin code
foreach (Field field in MyList.FieldLayouts[1].Fields) { field.Visibility = columnNames.Contains(field.Name) ? Visibility.Visible : Visibility.Collapsed; } foreach (Field field in MyList.FieldLayouts[0].Fields) { field.Visibility = columnNames.Contains(field.Name) ? Visibility.Visible : Visibility.Collapsed; }
//End Code
The columns are filtered, correctery, however only child elements was expended before I filter, can be expanded again, the others are empty (ie, when I click on the expension sign "+", this last one disapears, and no nested content (child object) is displayed)
Do you have any idea on how to resolve this ? or what is the reason to this behaviour ?
Thanks in advance,
Abdelkader