Class GridDataHeaderCellRenderer
Represents a class that maintains the rendering of GridHeaderCellControl in SfDataGrid.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Grid.Cells
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class GridDataHeaderCellRenderer : GridVirtualizingCellRenderer<GridHeaderCellControl, GridHeaderCellControl>, IGridCellRenderer, IDisposable
Constructors
GridDataHeaderCellRenderer()
Initializes a new instance of GridDataHeaderCellRenderer class.
Declaration
public GridDataHeaderCellRenderer()
Methods
CanUpdateBinding(GridColumn)
Determines whether the binding for the column can be updated.Implement this method to update binding on particular renderer whether the data context is set.
Declaration
public override bool CanUpdateBinding(GridColumn column)
Parameters
Type | Name | Description |
---|---|---|
GridColumn | column | Specifies the corresponding column. |
Returns
Type | Description |
---|---|
System.Boolean | True if the binding is updated for the column; otherwise false. |
Overrides
InitializeCellStyle(DataColumnBase, Object)
Initialize the custom style for cell when corresponding API's and selectors are used.
Declaration
protected override void InitializeCellStyle(DataColumnBase dataColumn, object record)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | Specifies the corresponding DataColumnBase. |
System.Object | record | Specifies the corresponding record. |
Overrides
OnInitializeDisplayElement(DataColumnBase, GridHeaderCellControl, Object)
Initialize the binding for display element of corresponding column.
Declaration
public override void OnInitializeDisplayElement(DataColumnBase dataColumn, GridHeaderCellControl uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | Specifies the DataColumnBase. |
GridHeaderCellControl | uiElement | Specifies the corresponding UIElement. |
System.Object | dataContext | Specifies the data context of the cell. |
Overrides
OnInitializeEditElement(DataColumnBase, GridHeaderCellControl, Object)
Initialize the binding for editor control of corresponding column.
Declaration
public override void OnInitializeEditElement(DataColumnBase dataColumn, GridHeaderCellControl uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | Specifies the DataColumnBase. |
GridHeaderCellControl | uiElement | Specifies the corresponding UIElement. |
System.Object | dataContext | Specifies the data context of the cell. |
Overrides
OnRenderCell(DrawingContext, Rect, DataColumnBase, Object)
Declaration
protected override void OnRenderCell(DrawingContext dc, Rect cellRect, DataColumnBase dataColumnBase, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.DrawingContext | dc | |
System.Windows.Rect | cellRect | |
DataColumnBase | dataColumnBase | |
System.Object | dataContext |
Overrides
OnUpdateDisplayBinding(DataColumnBase, GridHeaderCellControl, Object)
Updates the binding for display element of corresponding column.
Declaration
public override void OnUpdateDisplayBinding(DataColumnBase dataColumn, GridHeaderCellControl uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | Specifies the DataColumnBase. |
GridHeaderCellControl | uiElement | Specifies the corresponding UIElement. |
System.Object | dataContext | Specifies the data context of the cell. |
Overrides
OnUpdateEditBinding(DataColumnBase, GridHeaderCellControl, Object)
Updates the binding for editor control of corresponding column.
Declaration
public override void OnUpdateEditBinding(DataColumnBase dataColumn, GridHeaderCellControl element, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | Specifies the DataColumnBase. |
GridHeaderCellControl | element | Specifies the corresponding renderer element. |
System.Object | dataContext | Specifies the data context of the cell. |