Nested FlexGrids

Posted by: jared.fritsch on 14 November 2017, 8:14 am EST

    • Post Options:
    • Link

    Posted 14 November 2017, 8:14 am EST

    Are there any examples on getting nested FlexGrids working in Xamarin? I see a couple for some other platforms, but nothing on Xamarin and I am having a hard time seeing how to make it work.

    https://www.grapecity.com/en/blogs/nested-flexgrid-how-to-display-master-detail-data-in-mvc

    I would like to open a detail row that shows another, bound FlexGrid.

  • Posted 16 November 2017, 1:23 am EST

    If you’ve installed the C1Xamarin suite, you can find the FlexGrid101 sample at the following location: \Documents\ComponentOne Samples\Xamarin\XF\FlexGrid101\FlexGrid101.Xamarin\View

    and refer to RowDetails.xaml demo. This demo shows how to show detail row with Labels in it. You could easily replace the labels with another FlexGrid and show the details.

    Let me know if you face any difficulty.

  • Posted 16 November 2017, 2:35 am EST

    I was able to figure it out. I was struggling with binding the nested FlexGrid. My syntax was just off. I wish I would have looked at that demo sooner. Thanks!

    <c1g:FlexGridDetailProvider
        DetailVisibilityMode="Selection">
        <DataTemplate>
            <c1g:FlexGrid
                AutoGenerateColumns="True"
                ItemsSource="{Binding MyListProperty}" />
        </DataTemplate>
    </c1g:FlexGridDetailProvider>
    
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels