Class DataGridCheckBoxCellRenderer
A class for cell renderer that displays Microsoft.Maui.Controls.CheckBox in a DataGridCell.
Inherited Members
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class DataGridCheckBoxCellRenderer : DataGridCellRenderer<StackLayout, View>, IDataGridCellRenderer, IDisposable
Constructors
DataGridCheckBoxCellRenderer()
ToDo
Declaration
public DataGridCheckBoxCellRenderer()
Methods
OnCreateDisplayUIView()
Creates the view for the display UI.
Declaration
protected override StackLayout OnCreateDisplayUIView()
Returns
| Type |
|---|
| StackLayout |
Overrides
OnInitializeDisplayView(DataColumnBase, StackLayout?)
Initializes settings of the display view.
Declaration
[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "The CreateValueBinding method is not trim compatible")]
protected override void OnInitializeDisplayView(DataColumnBase dataColumn, StackLayout? view)
Parameters
| Type | Name | Description |
|---|---|---|
| DataColumnBase | dataColumn | |
| StackLayout | view |
Overrides
OnUnloadViews(DataColumnBase)
Called from UnloadViews(DataColumnBase) after a cell is scrolled out of view. DataGridCellRenderer<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 Syncfusion.Maui.DataGrid.DataGridCellRenderer`2.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)
Called when the cell value is updated.
Declaration
protected override void OnUpdateCellValue(DataColumnBase dataColumn)
Parameters
| Type | Name | Description |
|---|---|---|
| DataColumnBase | dataColumn |