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
325
Presenting Nested Data in XamDataGrid
posted

I am having some issues in displaying nested data in the xaml datagrid.

I have a class similar to the following

class myclass

{

string Name{get;set;}

string Expression{get; set;}

ObservableCollection<string> Values {get;}

}

I am trying to display the grid horizotnally, however I cannot get the Values to display at all. Please see the following xaml:

   <igDP:XamDataGrid Grid.Row="2" DataSource="{Binding Variables}" Theme="Office2010Blue" GroupByAreaLocation="None">
            <igDP:XamDataGrid.ViewSettings>
                <igDP:GridViewSettings UseNestedPanels="True" Orientation="Horizontal"/>
            </igDP:XamDataGrid.ViewSettings>
            
            <igDP:XamDataGrid.FieldLayoutSettings>
                <igDP:FieldLayoutSettings AutoGenerateFields="False" />
            </igDP:XamDataGrid.FieldLayoutSettings>
            
            <igDP:XamDataGrid.FieldSettings>
                <igDP:FieldSettings AllowEdit="True" />
            </igDP:XamDataGrid.FieldSettings>
 
            <igDP:XamDataGrid.FieldLayouts>
                <igDP:FieldLayout Key="Level1">
                    <igDP:Field Name="Name"/>
                    <igDP:Field Name="Expression"/>
                    <igDP:Field Name="Level2" Label="Values"/>
                </igDP:FieldLayout>
 
                <igDP:FieldLayout Key="Level2" ParentFieldLayoutKey="Level1">
                    <igDP:FieldLayout.Settings>
                        <igDP:FieldLayoutSettings />
                    </igDP:FieldLayout.Settings>
               
                    <igDP:Field Name="Values"/>
                </igDP:FieldLayout>
            </igDP:XamDataGrid.FieldLayouts>
        </igDP:XamDataGrid>