Class GridHeaderCellRenderer
GridHeaderCellRenderer is a class for cell renderer that displays header contents in a GridHeaderCellControl. 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
Inherited Members
Namespace: Syncfusion.SfDataGrid
Assembly: Syncfusion.SfDataGrid.Android.dll
Syntax
public class GridHeaderCellRenderer : GridVirtualizingCellRendererBase<View, GridCell>, IGridCellRenderer, IDisposable
Remarks
GridHeaderCellRenderer loads a view inside the GridHeaderCellControl inside which it hosts an Android.Views.View for displaying the HeaderText and also displays the sort icon adjacent to it upon sorting the column.
Constructors
GridHeaderCellRenderer()
Initializes a new instance of the GridHeaderCellRenderer class.
Declaration
public GridHeaderCellRenderer()
Methods
OnCreateDisplayUIView()
Creates a new Android.Views.View view and initializes it with the required properties.
Declaration
protected override View OnCreateDisplayUIView()
Returns
Type | Description |
---|---|
Android.Views.View | A new Android.Views.View view. |
Overrides
OnInitializeDisplayView(DataColumnBase, View)
Initializes the column element of a Syncfusion.SfDataGrid.DataColumn object with the given Android.Views.View and required values.
Declaration
public override void OnInitializeDisplayView(DataColumnBase dataColumn, View uiView)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.DataColumnBase | dataColumn | The dataColumn containing the details of the column. |
Android.Views.View | uiView | An Android.Widget.TextView object to be hosted inside the column element. |
Overrides
OnUpdateCellValue(DataColumnBase)
Updates the cell value of the header column.
Declaration
protected override void OnUpdateCellValue(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.DataColumnBase | dataColumn | The data column. |
Overrides
OnUpdateDisplayValue(DataColumnBase, View)
Updates the column element of a Syncfusion.SfDataGrid.DataColumn object with the given Android.Views.View and required values.
Declaration
public override void OnUpdateDisplayValue(DataColumnBase dataColumn, View uiView)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.DataColumnBase | dataColumn | The dataColumn containing the details of the column. |
Android.Views.View | uiView | A Android.Views.View to be updated inside the column element. |
Overrides
UpdateColumnElement(DataColumnBase)
Updates the column element of the passed dataColumn.
Declaration
protected override CellElement UpdateColumnElement(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.DataColumnBase | dataColumn | The data column. |
Returns
Type | Description |
---|---|
CellElement | The column element. |