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.

Custom Group Header Template

Thread ID:

Created:

Updated:

Platform:

Replies:

118434 Mar 9,2015 01:42 AM Mar 10,2015 02:13 AM WPF 1
loading
Tags: SfDataGrid
MAHESH NARAYANAN V V
Asked On March 9, 2015 01:42 AM

Hi,

    Is there any way to add custom group header template in SfDataGrid  ?
    
    The default Group Header Style Is   ColumnName : Value - Count 


Attachment: GroupHeader_553ae94c.rar

Jayapradha S [Syncfusion]
Replied On March 10, 2015 02:13 AM

Hi Mahesh,

 

Thank you for using Syncfusion products.

 

We have analyzed your query and it is possible to customize the group header template by using GroupCaptionTextFormat as shown in the below code snippet,

 

Code Snippet:

<Syncfusion:SfDataGrid x:Name="datagrid"  Grid.Row="1"

                               ColumnSizer="Star"

                               AutoGenerateColumns="False"

                               AllowResizingColumns="True"

                               AllowEditing="True"                      

                               GroupCaptionTextFormat="'{Key}-{ItemsCount}Items'"

                               AllowSorting="True"  

                               ItemsSource="{Binding Employees}"

                               AllowGrouping="True"

                               ShowGroupDropArea="True">       

 

Please refer the below UG document to customize the GroupHeaderText,

UG Link:  http://help.syncfusion.com/UG/Windows%20Phone%208/default.htm#!Documents/howtoformatcaptionsu.htm

 

You can also defines more than one summary row for every group and find the UG Link to define group summaries.

UG Link: http://help.syncfusion.com/UG/Windows%20Phone%208/default.htm#!Documents/summaries.htm

 

Please find the below KB document to customize the GroupKey and itemscount,

KB Link: https://www.syncfusion.com/kb/3249/how-to-customize-the-captionsummarycell-text-in-the-sfdatagrid

 

 

Kindly let us know if you have any other queries.

 

With Regards,

Jayapradha

 


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.

;