We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid in grid

Thread ID:





149408 Nov 25,2019 01:38 PM UTC Nov 29,2019 07:19 AM UTC UWP 3
Tags: SfDataGrid
Martin Lennaerts
Asked On November 25, 2019 01:38 PM UTC

We have a planning tool build with the sfdatagrid. On each planning line we want to have a subgrid in the last column containing information on the people using the planned transport. Is there somebody who has build a grid this way and wants to share a sample.

Transport   Departure   Arrival
Bus1                    9.30     10.03
                                                     Mary     1 seat
                                                     Hank     2 seats
Bus2                    9.30     10.03    Button show passengers
Bus1                    9.30     10.03    Button show passengers
Bus3                    9.30     10.03    Button show passengers
Bus1                    9.45     10.45     
                                                     Peter    2 seats
                                                     Tim      1 seat
                                                     Frank    3 seats

Mohanram Anbukkarasu [Syncfusion]
Replied On November 26, 2019 12:57 PM UTC

Hi Martin,   
Thanks for contacting Syncfusion support.   
Your requirement for creating GridTemplateColumn by loading SfDataGrid as DataTemplate can be achieved as shown in the below code example.    
Code example:    
    <syncfusion:GridTextColumn MappingName="Transport"/>   
    <syncfusion:GridTextColumn  MappingName="Departure" />   
    <syncfusion:GridTextColumn MappingName="Arrival"/>   
    <syncfusion:GridTemplateColumn  MappingName="Passengers">   
                <syncfusion:SfDataGrid ItemsSource="{Binding Converter={StaticResource itemsSourceConverter}}"/>   
We have prepared a sample using the above code example to replicate your scenario and it is available in the below link for your reference.   
Please let us know if you require further assistance from us.   
Mohanram A  

Martin Lennaerts
Replied On November 28, 2019 10:14 AM UTC

Thanks for your effort.
It looks like what we want so we will continue this way for now.

Regards Martin Lennaerts

Farjana Parveen Ayubb [Syncfusion]
Replied On November 29, 2019 07:19 AM UTC

Hi Martin, 
Thanks for the update. 
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you. 
Farjana Parveen A 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon