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
45
self-referencing hierarchical table not displaying
posted

Hello,

I have a table with an AccountID column and a ParentID column.  There is a data relation, Children, that relates the columns.  Below is the xaml I have written to try and get it to work, but when I add the <igDP:Field Name="Children"  /> field, only the second FieldLayout is displayed, and the first FieldLayout disappears.  What do I need to change to get this to work?  Does the hierarchical stuff only work with multiple tables?

 

            <igDP:XamDataGrid.FieldLayouts>
                <igDP:FieldLayout>
                    <igDP:FieldLayout.Fields>
                        <igDP:Field Name="Name" />
                        <igDP:Field Name="Type" />
                        <igDP:UnboundField Name="Balance" DataType="system:Decimal"/>
                        <igDP:Field Name="Inactive" Visibility="Collapsed" />
                        <igDP:Field Name="Children"  />
                    </igDP:FieldLayout.Fields>
                </igDP:FieldLayout>
                <igDP:FieldLayout>
                    <igDP:FieldLayout.Fields>
                        <igDP:Field Name="Name" />
                        <igDP:Field Name="Description" />
                    </igDP:FieldLayout.Fields>
                </igDP:FieldLayout>

Parents Reply Children
No Data