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

How do I change the individual colors of a SFDataGrid's GroupCaptionTextFormat?

Thread ID:





145641 Jul 2,2019 07:21 AM UTC Jul 5,2019 11:53 AM UTC WPF 2
Tags: SfDataGrid
Asked On July 2, 2019 11:30 AM UTC

My GroupCaptionTextFormat's value currently looks like this in XAML:

GroupCaptionTextFormat=" {Key} - {ItemsCount} Items"
And it looks like this at run time:

How do I change the INDIVIDUAL color of the ff:

" {Key} - {ItemsCount} Items"
France - 2 Items
1. France (the key result) -> red
2. - (the hyphen symbol) - > blue
3. 2 (the itemscount result) -> yellow
4. Items (the items text) -> green

Farjana Parveen Ayubb [Syncfusion]
Replied On July 3, 2019 12:16 PM UTC

Hi Mark, 
Thank you for using Syncfusion controls. 
We don’t have a direct support for changing the fore color for individual text in CaptionSummaryRow, so currently we are checking the possibilities to achieve this requirement by overriding the Generic style of CaptionSummaryRow. So we will provide the further details on 5th July, 2019. 
Farjana Parveen A 

Farjana Parveen Ayubb [Syncfusion]
Replied On July 5, 2019 11:53 AM UTC

Hi Mark, 
Thanks for your patience. 
We have analyzed your query to apply individual color for caption summary text. And this requirement can be achieved by modifying the control template of CaptionSummaryRowControl. We have prepared simple sample to achieve your requirement and please find it from the link below 
Sample Link: 
Please let us know, if you need further assistance on this. 
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