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.iOS.dll
Syntax
public class GridHeaderCellRenderer : GridVirtualizingCellRendererBase<UIView, GridCell>, IGridCellRenderer, IDisposable
Remarks
GridHeaderCellRenderer loads a view inside the GridHeaderCellControl inside which it hosts an UIKit.UIView 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 UIKit.UIView view and initializes it with the required properties.
Declaration
protected override UIView OnCreateDisplayUIView()
Returns
Type | Description |
---|---|
UIKit.UIView | A new UIKit.UIView view. |
Overrides
OnInitializeDisplayView(DataColumnBase, UIView)
Initializes the column element of a Syncfusion.SfDataGrid.DataColumn object with the given UIKit.UIView and required values.
Declaration
public override void OnInitializeDisplayView(DataColumnBase dataColumn, UIView uiView)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.DataColumnBase | dataColumn | The dataColumn containing the details of the column. |
UIKit.UIView | uiView | An UIKit.UILabel 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, UIView)
Updates the column element of a Syncfusion.SfDataGrid.DataColumn object with the given UIKit.UIView and required values.
Declaration
public override void OnUpdateDisplayValue(DataColumnBase dataColumn, UIView uiView)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.DataColumnBase | dataColumn | The dataColumn containing the details of the column. |
UIKit.UIView | uiView | A UIKit.UIView 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. |