Class DataGridUnboundCellRenderer
DataGridUnboundCellRenderer is a class for cell renderer that displays the unbound column value in a DataGridCell. 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.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class DataGridUnboundCellRenderer : DataGridCellRenderer<SfDataGridLabel, SfDataGridEntry>, IDataGridCellRenderer, IDisposable
Constructors
DataGridUnboundCellRenderer()
Initializes a new instance of the DataGridUnboundCellRenderer class.
Declaration
public DataGridUnboundCellRenderer()
Methods
CanUpdateBinding(DataColumnBase)
Determines whether the binding for the column can be updated. Implement this method to update binding on particular renderer when the data context is set.
Declaration
public override bool CanUpdateBinding(DataColumnBase dataColumnBase)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.Maui.DataGrid.DataColumnBase | dataColumnBase | The corresponding column for which the binding update should be determined. |
Returns
Type | Description |
---|---|
System.Boolean | True if the binding is updated for the column, otherwise false. |
Overrides
OnCreateDisplayUIView()
Creates a new SfDataGridLabel view and initializes it with the required properties.
Declaration
protected override SfDataGridLabel OnCreateDisplayUIView()
Returns
Type | Description |
---|---|
SfDataGridLabel | A new SfDataGridLabel view. |
Overrides
OnInitializeDisplayView(DataColumnBase, SfDataGridLabel)
Initializes the column element of a Syncfusion.Maui.DataGrid.DataColumn object with the given SfDataGridLabel view and required values.
Declaration
protected override void OnInitializeDisplayView(DataColumnBase dataColumn, SfDataGridLabel view)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.Maui.DataGrid.DataColumnBase | dataColumn | The dataColumn containing the details of the column. |
SfDataGridLabel | view | A SfDataGridLabel view object to be hosted inside the column element. |
Overrides
OnUpdateCellValue(DataColumnBase)
Updates the cell value of the associated column.
Declaration
protected override void OnUpdateCellValue(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.Maui.DataGrid.DataColumnBase | dataColumn | The data column. |