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
590
How can we add subgrid in some of rows in XAMgrid ?
posted

Hello,

We are using XAMGrid. Here we want to add sub grid in XAMGrid but not for all Rows.So instead of all rows need to add sub grid in some of rows which have data in sub grid. If  sub grid collection data is null then In these case simple grid row should be shown instead of sub grid expander.

Please let us aware how we can approach it. Your help would be appreciate.

Thanks

Parents
  • 34810
    Offline posted

    Hello prikanwar,

    Thank you for your post.

    From your description of this forum thread, it sounds as if you are looking to allow certain rows in your XamGrid to be hierarchical, where others aren't, and the ones that aren't have no expansion indicator. If this is the case and I have understood your requirement correctly, then it may be helpful for you to know that when the XamGrid deals with hierarchical data sets, it does this by default. If there are no records that exist in the hierarchical levels below the parent level, there will be no expansion indicator shown.

    I have attached a sample project that demonstrates a XamGrid with a hierarchical bound ItemsSource. Note that for the rows that have no children, the expansion indicator is not shown. I hope this helps you.

    Please let me know if you have any other questions or concerns on this matter.

    Sincerely,
    Andrew
    Associate Developer

    XamGridHierarchyCase.zip
Reply Children