I have a small 3 level hierarchical grid. I'd like to set the FieldLayoutSettings differently for each child level, setting the LabelLocation="Hidden" for the child only. Right now, all 3 level of display uses the same FieldLayoutSettings. I'd like to "apply" a FieldLayoutSettings to a specific FieldLayout. How do I do this?
Here's my xaml:
<igDP:XamDataGrid DataSource="{Binding Model}" >
<igDP:XamDataGrid.FieldLayoutSettings>
<igDP:FieldLayoutSettings AutoGenerateFields="False" LabelLocation="Hidden" />
</igDP:XamDataGrid.FieldLayoutSettings>
<igDP:XamDataGrid.FieldLayouts>
<!-- FieldLayout for Level 1 -->
<igDP:FieldLayout>
<igDP:FieldLayout.Fields>
<igDP:Field Name="Status" />
<igDP:Field Name="ObservationCode" />
<igDP:Field Name="Comment" Width="*"/>
</igDP:FieldLayout.Fields>
</igDP:FieldLayout>
<!-- FieldLayout for level 2 -->
<igDP:Field Name="Sites" />
<igDP:Field Name="Description" Width="*"/>
<!-- FieldLayout for level 3-->
</igDP:XamDataGrid.FieldLayouts>
</igDP:XamDataGrid>
Hello,
Modifying the FieldSettings of the XamDataGrid will set these settings for all of the field layouts - globally.
What you need to do is modify the Settings of the FieldLayout, which will result in different field layout settings per field layout. LIke this:
<igDP:FieldLayout.Settings>
<igDP:FieldLayoutSettings />
</igDP:FieldLayout.Settings>
Hope this helps.