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
175
How we can add subgrid for Child data using XAM grid.
posted

Hi,

we are going to add parent child sub grid using XAMGrid. we have followed this link:

http://www.infragistics.com/community/forums/t/107028.aspx 

But we want to add sub grid for child data as well and using the help of above link we are able to add only subgrid for parent Row not for child row.

For Example:  In Parent Row we have Country Name and In Country Name have child data for State as sub grid of Country.

And Subgrid State also have sub grid for City Name.

Please help us.

Thanks

Parents
No Data
Reply
  • 16495
    Offline posted

    Hello Harsh,

    Thank you for your suppport request.

    I have modified the attached sample applciaiton from the thread you have mentioned in your post  in order to show you how can achieve the functionallity you are looking for. You can find the new version (‘XamGridHierarchyCase.zip’) under my post.  Bassically, I have added one more ColumnLayout to the Children’s ColumnLayouts and a TextColumn corresponding  to underlying data property. For example:

        <ig:XamGrid ItemsSource="{Binding Data}" AutoGenerateColumns="False">
                <ig:XamGrid.Columns>
                    <ig:TextColumn Key="ID"/>
                    <ig:TextColumn Key="Number"/>
                    <ig:ColumnLayout Key="Children">
                        <ig:ColumnLayout.Columns>
                            <ig:TextColumn Key="ChildID"/>
                            <ig:TextColumn Key="ChildLabel"/>
                            <ig:ColumnLayout Key="ChState">
                                <ig:ColumnLayout.Columns>
                                    <ig:TextColumn Key="ChildLabelState"/>
                                </ig:ColumnLayout.Columns>
                            </ig:ColumnLayout>
                        </ig:ColumnLayout.Columns>
                    </ig:ColumnLayout>
                </ig:XamGrid.Columns>
         </ig:XamGrid>

    Please do not hesitate to let me know if you require any further assistance regarding this matter.

    Sincerely,
    Zhivko
    Entry Level Software Developer

    XamGridHierarchyCase.zip
Children
No Data