Class GridStackedHeaderCellRenderer
GridStackedHeaderCellRenderer is a cell rendrer for GridStackedHeaderCellControl that displays stacked header contents in a StackedHeaderRow. 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.XForms
Assembly: Syncfusion.SfDataGrid.XForms.dll
Syntax
public class GridStackedHeaderCellRenderer : GridVirtualizingCellRendererBase<ContentView, GridCell>, IGridCellRenderer, IDisposable
Remarks
GridStackedHeaderCellRenderer loads a Xamarin.Forms.ContentView inside the GridStackedHeaderCellControl inside which it hosts an SfLabel for displaying the Text.
Constructors
GridStackedHeaderCellRenderer()
Initializes a new instance of the GridStackedHeaderCellRenderer class.
Declaration
public GridStackedHeaderCellRenderer()
Methods
OnCreateDisplayUIView()
Creates a new Xamarin.Forms.ContentView.
Declaration
protected override ContentView OnCreateDisplayUIView()
Returns
Type | Description |
---|---|
Xamarin.Forms.ContentView | A new Xamarin.Forms.ContentView. |
Overrides
OnInitializeDisplayView(DataColumnBase, ContentView)
Initializes the column element of a Syncfusion.SfDataGrid.XForms.DataColumn object with the given Xamarin.Forms.ContentView and required values.
Declaration
public override void OnInitializeDisplayView(DataColumnBase dataColumn, ContentView view)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumn | The dataColumn containing the details of the column. |
Xamarin.Forms.ContentView | view | A Xamarin.Forms.ContentView to be hosted inside the column element. |
Overrides
OnSetCellStyle(DataColumnBase)
Called from SetCellStyle(DataColumnBase) to set the style for the column element in a Syncfusion.SfDataGrid.XForms.DataColumn.
Declaration
protected override void OnSetCellStyle(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumn | The data column. |
Overrides
OnUpdateCellStyle(DataColumnBase)
Called from UpdateCellStyle(DataColumnBase) to update the cell style for the column element in a Syncfusion.SfDataGrid.XForms.DataColumn.
Declaration
protected override void OnUpdateCellStyle(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumn | The data column. |
Overrides
OnUpdateCellValue(DataColumnBase)
Updates the cell value of the StackedColumn.
Declaration
protected override void OnUpdateCellValue(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumn | The data column. |
Overrides
OnUpdateDisplayValue(DataColumnBase, ContentView)
Updates the column element of a Syncfusion.SfDataGrid.XForms.DataColumn object with the given Xamarin.Forms.ContentView and required values.
Declaration
public override void OnUpdateDisplayValue(DataColumnBase dataColumn, ContentView view)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.XForms.DataColumnBase | dataColumn | The dataColumn containing the details of the column. |
Xamarin.Forms.ContentView | view | A Xamarin.Forms.ContentView 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.XForms.DataColumnBase | dataColumn | The data column. |
Returns
Type | Description |
---|---|
CellElement | The column element. |