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
755
Define an hierarchical datagrid manually
posted

 Hi,

Relate with this post: http://forums.infragistics.com/forums/t/20265.aspx

I want to create an hierarchical datagrid but instead be automatic I want to create it manually.

For example, I have a ObervableCollection<Person> , but for each person I want to convert Person.Id to a DataTable with the current loans via WPF converter derived class and show that DataTable nested to the Person row.

Wich will be the correct way to do it?

I'm using:

                    <igDp:FieldLayout.Fields>
                        <igDp:Field Name="Name" Row="0" Column="0"/>
                        <igDp:Field Name="Surname" Row="0" Column="1"/>
                        <igDp:Field Name="Title" Row="0" Column="2"/>
                        <igDp:Field Name="Id" Converter="{StaticResource loanConverter}" Row="1" Column="0" ColumnSpan="3" IsExpandable="True" />
                    </igDp:FieldLayout.Fields>
                </igDp:FieldLayout>
 

 Where loanConverter returns a DataTable, but the bottom row appears empty.

Cheers.