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

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


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

2 Replies

FP Farjana Parveen Ayubb Syncfusion Team 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. 
 
Regards, 
Farjana Parveen A 



FP Farjana Parveen Ayubb Syncfusion Team 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. 
  
Regards, 
Farjana Parveen A 


Loader.
Up arrow icon