Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147018 | Aug 29,2019 12:42 AM UTC | Aug 29,2019 10:48 AM UTC | Xamarin.Forms | 1 |
![]() |
Tags: SfDataGrid |
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
dataGrid.CellRenderers.Remove("CaptionSummary");
dataGrid.CellRenderers.Add("CaptionSummary", new CustomGroupRenderer());
}
}
public class CustomGroupRenderer : GridCaptionSummaryCellRenderer
{
public CustomGroupRenderer()
{
}
public override void OnInitializeDisplayView(DataColumnBase dataColumn, SfLabel view)
{
base.OnInitializeDisplayView(dataColumn, view);
view.FontAttributes = FontAttributes.None;
view.BackgroundColor = Color.Tomato;
view.TextColor = Color.White;
}
}
|
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.
This page will automatically be redirected to the sign-in page in 10 seconds.