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 to style the GridSummaryColumn? font? alignment?


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.


1 Reply

AN Ashok N Syncfusion Team August 9, 2017 11:43 AM UTC

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; 

Live Chat Icon For mobile
Up arrow icon