Class DataGridNumericCellRenderer
A class for cell renderer that displays SfDataGridLabel in a DataGridCell. The class provides strong typed override methods for initializing Content of the cell and arranging the cell visuals.
Inheritance
Inherited Members
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class DataGridNumericCellRenderer : DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>, IDataGridCellRenderer, IDisposable
Constructors
DataGridNumericCellRenderer()
ToDo
Declaration
public DataGridNumericCellRenderer()
Methods
GetControlValue()
Returns the current cell value, only if the renderer's
Declaration
public override object GetControlValue()
Returns
Type | Description |
---|---|
System.Object | The current cell value. |
Overrides
OnCreateDisplayUIView()
Creates the view for the display UI.
Declaration
protected override SfDataGridLabel OnCreateDisplayUIView()
Returns
Type |
---|
SfDataGridLabel |
Overrides
OnCreateEditUIView()
Creates a new view for the edit mode of cell.
Declaration
protected override SfNumericEntry OnCreateEditUIView()
Returns
Type | Description |
---|---|
SfNumericEntry | Returns the new view for edit mode of cell. |
Overrides
OnInitializeEditView(DataColumnBase, SfNumericEntry)
Initializes the edit column element of a Syncfusion.Maui.DataGrid.DataColumn object with the given view and required values.
Declaration
public override void OnInitializeEditView(DataColumnBase dataColumn, SfNumericEntry view)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.Maui.DataGrid.DataColumnBase | dataColumn | The data column object containing the values to be updated in the view. |
SfNumericEntry | view | The child view to be hosted inside the column element. |
Overrides
OnUpdateCellValue(DataColumnBase)
Called when the cell value is updated.
Declaration
protected override void OnUpdateCellValue(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.Maui.DataGrid.DataColumnBase | dataColumn |
Overrides
ResumeBinding(DataColumnBase, SfDataGridLabel)
Resume the binding of a SfLabel view Syncfusion.Maui.DataGrid.DataColumn .
Declaration
protected override void ResumeBinding(DataColumnBase dataColumn, SfDataGridLabel view)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.Maui.DataGrid.DataColumnBase | dataColumn | The data column object containing the values to be updated in the view. |
SfDataGridLabel | view | The child view to be hosted inside the column element. |
Overrides
SetControlValue(Object)
Set the current cell value, only if the renderer's
Declaration
public override void SetControlValue(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value to be set to the current cell. |
Overrides
SuspendBinding(DataColumnBase, SfDataGridLabel)
Suspend the binding of a SfLabel view Syncfusion.Maui.DataGrid.DataColumn .
Declaration
protected override void SuspendBinding(DataColumnBase dataColumn, SfDataGridLabel view)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.Maui.DataGrid.DataColumnBase | dataColumn | The data column object containing the values to be updated in the view. |
SfDataGridLabel | view | The child view to be hosted inside the column element. |
Overrides
UnwireEditUIElement(SfNumericEntry)
Unwires the edit element to the view.
Declaration
protected override void UnwireEditUIElement(SfNumericEntry editElement)
Parameters
Type | Name | Description |
---|---|---|
SfNumericEntry | editElement |
Overrides
UpdateEditViewCellStyle(DataColumnBase, SfNumericEntry)
Updates the cell style of the edit element in a grid cell.
Declaration
protected override void UpdateEditViewCellStyle(DataColumnBase dataColumn, SfNumericEntry editView)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.Maui.DataGrid.DataColumnBase | dataColumn | The data column. |
SfNumericEntry | editView | The edit view hosted inside a column element. |