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.

How to style the GridSummaryColumn? font? alignment?

Thread ID:





132022 Aug 8,2017 02:29 PM Aug 9,2017 07:43 AM Xamarin.Forms 1
Tags: SfDataGrid
Roygar Briceno
Asked On August 8, 2017 02:29 PM


How do I set the font? font style (like bold or normal) and text alignment to the GridSummaryColumn? it's possible?? by default the text is bold and left aligned which is a bit odd with numeric columns that usually are right aligned.


Ashok N [Syncfusion]
Replied On August 9, 2017 07:43 AM

Hi Roygar,
Thanks for contacting Syncfusion support. 
We regret to inform you that we cannot able to customize the GridSummaryColumn in our SfDataGrid. We can able to customize the CaptionSummaryCell by customizing GridCaptionSummaryCellRenderer class. Please refer the below code example  
public partial class SfDataGridPage : ContentPage 
    public SfDataGridPage() 
        dataGrid.CellRenderers.Add("CaptionSummary", new GridCaptionSummaryCellRendererExt()); 
public class GridCaptionSummaryCellRendererExt : GridCaptionSummaryCellRenderer 
    public GridCaptionSummaryCellRendererExt() 
    public override void OnInitializeDisplayView(DataColumnBase dataColumn, SfLabel view) 
        base.OnInitializeDisplayView(dataColumn, view); 
        view.TextColor = Color.Red; 
        view.HorizontalTextAlignment = TextAlignment.Start; 


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.