Class DataGridCurrencyCellRenderer
A class for cell renderer that displays currency values in a DataGridCell. The class provides strongly typed override methods for initializing content of the cell and arranging cell visuals.
Inheritance
Inherited Members
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class DataGridCurrencyCellRenderer : DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>, IDataGridCellRenderer, IDisposable
Constructors
DataGridCurrencyCellRenderer()
Initializes a new instance of the DataGridCurrencyCellRenderer class.
Declaration
public DataGridCurrencyCellRenderer()
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
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
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. |