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 GridCellRendererBase.HasCurrentCellState is true.
Declaration
[RequiresUnreferencedCode("The GetControlValue method is not trim compatible")]
public override object? GetControlValue()
Returns
| Type | Description |
|---|---|
| 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
OnEnteredEditMode(DataColumnBase, View)
Applies editor selection behavior when entering edit mode.
Declaration
protected override void OnEnteredEditMode(DataColumnBase dataColumn, View currentRendererElement)
Parameters
| Type | Name | Description |
|---|---|---|
| DataColumnBase | dataColumn | |
| View | currentRendererElement |
Overrides
OnInitializeEditView(DataColumnBase, SfDataGridEntry)
Initializes the edit column element of a Syncfusion.Maui.DataGrid.DataColumn object with the given SfEntry view and required values.
Declaration
[RequiresUnreferencedCode("The OnInitializeEditView method is not trim compatible")]
public override void OnInitializeEditView(DataColumnBase dataColumn, SfDataGridEntry view)
Parameters
| Type | Name | Description |
|---|---|---|
| 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 IGridCellRenderer.UnloadViews(DataColumnBase) after a cell is scrolled out of view. GridVirtualizingCellRendererBase<T1, T2> overrides this method and either removes the cell renderer visuals from the parent canvas or hide them and reuse it later in same canvas depending on whether GridVirtualizingCellRendererBase<T1, T2>.AllowRecycle was set.
Declaration
protected override void OnUnloadViews(DataColumnBase dataColumn)
Parameters
| Type | Name | Description |
|---|---|---|
| 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 |
|---|---|---|
| DataColumnBase | dataColumn |
Overrides
ResumeBinding(DataColumnBase, SfDataGridLabel)
ToDo
Declaration
[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "The ResumeBinding method is not trim compatible")]
protected override void ResumeBinding(DataColumnBase dataColumn, SfDataGridLabel view)
Parameters
| Type | Name | Description |
|---|---|---|
| DataColumnBase | dataColumn | |
| SfDataGridLabel | view |
Overrides
SetControlValue(object)
ToDo
Declaration
public override void SetControlValue(object value)
Parameters
| Type | Name | Description |
|---|---|---|
| object | value |
Overrides
SuspendBinding(DataColumnBase, SfDataGridLabel)
ToDo
Declaration
protected override void SuspendBinding(DataColumnBase dataColumn, SfDataGridLabel view)
Parameters
| Type | Name | Description |
|---|---|---|
| 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 |
|---|---|---|
| DataColumnBase | dataColumn | The data column. |
| SfDataGridEntry | editView | The edit view hosted inside a column element. |