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

Conditional styling of caption summary row based on mappigname

Thread ID:





147424 Sep 10,2019 09:44 AM UTC Sep 11,2019 12:10 PM UTC WPF 1
Tags: SfDataGrid
marco del frate
Asked On September 10, 2019 09:44 AM UTC

Good morning,

in WPF sfdatagrid documentation I found

Conditional styling of caption summary row based on group level

 public override Style SelectStyle(object item, DependencyObject container)
        var dataRow = item as DataRowBase;
        var level = dataRow.Level;

        //based on group levels, style applied to CaptionSummaryRow

        if (level == 1)
            return App.Current.Resources["rowStyle1"] as Style;

        else if (level == 2)
            return App.Current.Resources["rowStyle2"] as Style;

        else if (level == 3)
            return App.Current.Resources["rowStyle3"] as Style;
        return base.SelectStyle(item, container);

Is it possible to base the condition on mappingname? And How?
Thank You in advance,
Best regards

Farjana Parveen Ayubb [Syncfusion]
Replied On September 11, 2019 12:10 PM UTC

Hi Marco, 
Thank you for using Syncfusion controls. 
You can able to apply the style for CaptionSummaryRow based on mapping name by customizing the GridCaptionSummaryCell in SfDataGrid. 
Please refer the below UG link, 
Please let us know if you need any further details 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