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
1280
Configuring nested fields in XamDataGrid
posted

Hi,

I was trying to configure the layout of nested fields in XamDataGrid, but I can't figure out how to.

To make it more clear:

I have two objects : Project and Order, Each project has an observable collection of order, so when clicking the plus button next to each project I want to be able to configure which fields of the order should be shown.

                    <igDp:FieldLayout.Fields>
                        <igDp:Field Name="ProjectName" Label="Name" Width="Auto"/>
                        <igDp:Field Name="ProjectNumber" Label="Number" Width="Auto" />
                        <igDp:Field Name="Orders" Label="Orders" Width="Auto" />
                    </igDp:FieldLayout.Fields>

The above code with <igDp:FieldLayoutSettings AutoGenerateFields="False"/> Creates the layout for the first layer, but when clicking plus I only see empty orders.

If I change AutoGenerateFields to true then I see Orders as well but for both Orders and Project it adds unnecessary fields.

I want to be in control of all fields, so the question is how do I create the nested fields ?

I have added a sample project which demonstrates the problem.

XamDataGridExample.rar