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.
Unfortunately, activation email could not send to your email. Please try again.

Merging column headers in an SfDataGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

126115 Oct 13,2015 12:35 PM Aug 24,2018 06:37 AM Xamarin.iOS 5
loading
Tags: SfDataGrid
Cameron Flores
Asked On October 13, 2015 12:35 PM

Hi,

I'm trying to merge some of the header cells in an SfDataGrid control.  Please see the below mockup which demonstrates what I'm trying to do (specifically "Column 3").  Is this possible?  Thanks.



Ayyanar Sasi Kumar Jeyaraj [Syncfusion]
Replied On October 14, 2015 10:32 AM

Hi Cameron,
Thank you for contacting Syncfusion support.
We have analyzed your query and you can achieve your requirement by using StackedHeaders in SfDataGrid to merge the column headers as you mentioned in the snapshot.
Please refer the below code example to create the StackedHeaders in SfDataGrid
XAML:

<Syncfusion:SfDataGrid.Columns>

                <Syncfusion:GridTextColumn MappingName="name"/>

                <Syncfusion:GridTextColumn MappingName="A"/>

                <Syncfusion:GridTextColumn MappingName="B"/>

                <Syncfusion:GridTextColumn MappingName="C"/>

                <Syncfusion:GridTextColumn MappingName="D"/>

                <Syncfusion:GridTextColumn MappingName="E"/>

                <Syncfusion:GridTextColumn MappingName="F"/>

                <Syncfusion:GridTextColumn MappingName="G"/>

            </Syncfusion:SfDataGrid.Columns>

            <Syncfusion:SfDataGrid.StackedHeaderRows>

                <Syncfusion:StackedHeaderRow>

                    <Syncfusion:StackedHeaderRow.StackedColumns>

                        <Syncfusion:StackedColumn  ChildColumns="D,E,F" HeaderText="Columns"></Syncfusion:StackedColumn>

                    </Syncfusion:StackedHeaderRow.StackedColumns>

                </Syncfusion:StackedHeaderRow>

            </Syncfusion:SfDataGrid.StackedHeaderRows>

We have prepared the sample based on your requirement and please find the sample from the following location:
Sample:
http://www.syncfusion.com/downloads/support/forum/120765/ze/WinRT691212502
Please let us know if you have any query.
Regards,
Ayyanar

Kevin Bernard San Gaspar
Replied On September 23, 2016 06:59 AM

Hi,

Is this feature in Xamarin.iOS as well?

Ashok N [Syncfusion]
Replied On September 26, 2016 12:33 AM

Hi Kevin, 
  
Currently we don’t have support for “StackedHeaders” in our SfDataGrid (Xamarin platform). A support incident to track the status of this feature has been created under your account. Please log on to our support website to check for further updates: 
  
 
Regards, 
Ashok 


Chonlada Yoisang
Replied On August 23, 2018 03:53 AM

Hi,

Is this feature in Xamarin now? if not, do you have any suggest to make it work like that?

Thanks.


Arulraj A [Syncfusion]
Replied On August 24, 2018 06:37 AM

Hi Chonlada,   
   
Thanks for contacting Syncfusion support.   
   
We are sorry to let you know that currently we do not have support to merge column headers. We have already considered the “Provide support for StackedHeader in SfDataGrid” as feature and added it to our feature request list. It will be available in any of our upcoming releases and it can be tracked through our Features Management System in the support ticket 213385. 
    
Please let us know if you require further assistance.   
 
Regards, 
Arulraj 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.

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.

;