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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid in grid

Thread ID:

Created:

Updated:

Platform:

Replies:

149408 Nov 25,2019 01:38 PM UTC Nov 29,2019 07:19 AM UTC UWP 3
loading
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:SfDataGrid.Columns>   
    <syncfusion:GridTextColumn MappingName="Transport"/>   
    <syncfusion:GridTextColumn  MappingName="Departure" />   
    <syncfusion:GridTextColumn MappingName="Arrival"/>   
    <syncfusion:GridTemplateColumn  MappingName="Passengers">   
        <syncfusion:GridTemplateColumn.CellTemplate>   
            <DataTemplate>   
                <syncfusion:SfDataGrid ItemsSource="{Binding Converter={StaticResource itemsSourceConverter}}"/>   
            </DataTemplate>   
        </syncfusion:GridTemplateColumn.CellTemplate>   
    </syncfusion:GridTemplateColumn>   
</syncfusion:SfDataGrid.Columns>   
  
  
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.   
  
Regards,   
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. 
 
Regards, 
Farjana Parveen A 


CONFIRMATION

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