Hi All,
I am using the Infragistics XamDataGrid v7.2. Please find below the screenshot of the hierarchy data.
The Grid datasource is set dynamically and am not setting any layouts in the XAML.The items marked in RED are the items which i need to remove or make it hidden as part of the layout.
Could you please post some code on how to remove the FieldLayout collection which gets created as part of the Hierarchy data?
Regards,
Sathya
Hi sathya,
I assume that the main collection class have
Collection<CPAJuristictionMemberList> and
Collection<JuristictionList>. right?
Use the following code to hide that column
grid.FieldLayouts[0].Fields["CPAJuristictionMemberList"].Visibility = Visibility.Collapsed; grid.FieldLayouts[0].Fields["JuristictionList"].Visibility = Visibility.Collapsed;
The both field exists in FieldLayout [0]. We simple make the visibility of column as collapse.
reply if it is not work.