Class DataGridTextBoxCellRenderer
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.
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 DataGridTextBoxCellRenderer : DataGridCellRenderer<SfDataGridLabel, SfDataGridEntry>, IDataGridCellRenderer, IDisposable
Constructors
DataGridTextBoxCellRenderer()
ToDo
Declaration
public DataGridTextBoxCellRenderer()
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 a new SfDataGridLabel view and initializes it with the required properties.
Declaration
protected override SfDataGridLabel OnCreateDisplayUIView()
Returns
Type |
---|
SfDataGridLabel |
Overrides
OnCreateEditUIView()
ToDo
Declaration
protected override SfDataGridEntry OnCreateEditUIView()
Returns
Type |
---|
SfDataGridEntry |
Overrides
OnInitializeEditView(DataColumnBase, SfDataGridEntry)
Initializes the edit column element of a Syncfusion.Maui.DataGrid.DataColumn object
with the given
Declaration
public override void OnInitializeEditView(DataColumnBase dataColumn, SfDataGridEntry view)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.Maui.DataGrid.DataColumnBase | dataColumn | The dataColumn containing the details of the column. |
SfDataGridEntry | view | The child view to be hosted inside the column element. |
Overrides
OnUnloadViews(DataColumnBase)
Called from
Declaration
protected override void OnUnloadViews(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.Maui.DataGrid.DataColumnBase | dataColumn | The dataColumn containing the details of the column. |
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 |
Overrides
ResumeBinding(DataColumnBase, SfDataGridLabel)
ToDo
Declaration
protected override void ResumeBinding(DataColumnBase dataColumn, SfDataGridLabel view)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.Maui.DataGrid.DataColumnBase | dataColumn | |
SfDataGridLabel | view |
Overrides
SetControlValue(Object)
ToDo
Declaration
public override void SetControlValue(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value |
Overrides
SuspendBinding(DataColumnBase, SfDataGridLabel)
ToDo
Declaration
protected override void SuspendBinding(DataColumnBase dataColumn, SfDataGridLabel view)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.Maui.DataGrid.DataColumnBase | dataColumn | |
SfDataGridLabel | view |
Overrides
UnwireEditUIElement(SfDataGridEntry)
Unwires the edit element to the view.
Declaration
protected override void UnwireEditUIElement(SfDataGridEntry editElement)
Parameters
Type | Name | Description |
---|---|---|
SfDataGridEntry | editElement |
Overrides
UpdateEditViewCellStyle(DataColumnBase, SfDataGridEntry)
Updates the cell style of the edit element in a grid cell.
Declaration
protected override void UpdateEditViewCellStyle(DataColumnBase dataColumn, SfDataGridEntry editView)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.Maui.DataGrid.DataColumnBase | dataColumn | The data column. |
SfDataGridEntry | editView | The edit view hosted inside a column element. |