Class DataGridHeaderCellRenderer
A class for cell renderer that displays header contents in a DataGridHeaderCell. The class provides strong typed override methods for initializing Content of the cell and arranging the cell visuals.
Updates to appearance and Content of child elements, creation and unloading of views will not trigger layout or render calls in parent canvas.
Inheritance
System.Object
DataGridHeaderCellRenderer
Inherited Members
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class DataGridHeaderCellRenderer : DataGridCellRenderer<SfDataGridContentView, View>, IDataGridCellRenderer, IDisposable
Constructors
DataGridHeaderCellRenderer()
Initializes a new instance of the DataGridHeaderCellRenderer class.
Declaration
public DataGridHeaderCellRenderer()
Methods
OnCreateDisplayUIView()
Creates the view for the display UI.
Declaration
protected override SfDataGridContentView OnCreateDisplayUIView()
Returns
Type |
---|
SfDataGridContentView |
Overrides
Syncfusion.Maui.DataGrid.DataGridCellRenderer<Syncfusion.Maui.DataGrid.SfDataGridContentView, Microsoft.Maui.Controls.View>.OnCreateDisplayUIView()
OnInitializeDisplayView(DataColumnBase, SfDataGridContentView)
Initializes settings of the display view.
Declaration
protected override void OnInitializeDisplayView(DataColumnBase dataColumn, SfDataGridContentView view)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.Maui.DataGrid.DataColumnBase | dataColumn | |
SfDataGridContentView | view |
Overrides
Syncfusion.Maui.DataGrid.DataGridCellRenderer<Syncfusion.Maui.DataGrid.SfDataGridContentView, Microsoft.Maui.Controls.View>.OnInitializeDisplayView(Syncfusion.Maui.DataGrid.DataColumnBase, Syncfusion.Maui.DataGrid.SfDataGridContentView)
OnSetCellStyle(DataColumnBase)
Called when the cell style is set.
Declaration
protected override void OnSetCellStyle(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.Maui.DataGrid.DataColumnBase | dataColumn |
Overrides
Syncfusion.Maui.DataGrid.DataGridCellRenderer<Syncfusion.Maui.DataGrid.SfDataGridContentView, Microsoft.Maui.Controls.View>.OnSetCellStyle(Syncfusion.Maui.DataGrid.DataColumnBase)
OnUpdateCellValue(DataColumnBase)
Updates the cell value of the header column.
Declaration
protected override void OnUpdateCellValue(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.Maui.DataGrid.DataColumnBase | dataColumn |
Overrides
Syncfusion.Maui.DataGrid.DataGridCellRenderer<Syncfusion.Maui.DataGrid.SfDataGridContentView, Microsoft.Maui.Controls.View>.OnUpdateCellValue(Syncfusion.Maui.DataGrid.DataColumnBase)
Implements
System.IDisposable