menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DataGridCellTemplateRenderer - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DataGridCellTemplateRenderer

    A a class for cell renderer that displays customized view 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
    System.Object
    DataGridCellRenderer<Microsoft.Maui.Controls.View, Microsoft.Maui.Controls.View>
    DataGridCellTemplateRenderer
    Implements
    IDataGridCellRenderer
    System.IDisposable
    Inherited Members
    DataGridCellRenderer<View, View>.BeginEdit(RowColumnIndex, DataGridCell, DataGridColumn, Object)
    DataGridCellRenderer<View, View>.CanUpdateBinding(DataColumnBase)
    DataGridCellRenderer<View, View>.ClearRecycleBin()
    DataGridCellRenderer<View, View>.CommitCellValue(Boolean)
    DataGridCellRenderer<View, View>.CurrentCellElement
    DataGridCellRenderer<View, View>.CurrentCellIndex
    DataGridCellRenderer<View, View>.CurrentCellRendererElement
    DataGridCellRenderer<View, View>.DataGrid
    DataGridCellRenderer<View, View>.Dispose()
    DataGridCellRenderer<View, View>.Dispose(Boolean)
    DataGridCellRenderer<View, View>.EndEdit(DataColumnBase, Object, Boolean)
    DataGridCellRenderer<View, View>.GetControlValue()
    DataGridCellRenderer<View, View>.HasCurrentCellState
    DataGridCellRenderer<View, View>.IsEditable
    DataGridCellRenderer<View, View>.IsFocusable
    DataGridCellRenderer<View, View>.IsInEditing
    DataGridCellRenderer<View, View>.OnCreateDisplayUIView()
    DataGridCellRenderer<View, View>.OnCreateEditUIView()
    DataGridCellRenderer<View, View>.OnEnteredEditMode(DataColumnBase, View)
    DataGridCellRenderer<View, View>.OnInitializeDisplayView(DataColumnBase, View)
    DataGridCellRenderer<View, View>.OnInitializeEditView(DataColumnBase, View)
    DataGridCellRenderer<View, View>.OnPrepareViews(DataColumnBase)
    DataGridCellRenderer<View, View>.OnSetCellStyle(DataColumnBase)
    DataGridCellRenderer<View, View>.OnUnloadViews(DataColumnBase)
    DataGridCellRenderer<View, View>.OnUpdateCellValue(DataColumnBase)
    DataGridCellRenderer<View, View>.PrepareViews(DataColumnBase)
    DataGridCellRenderer<View, View>.RefreshDisplayValue(DataColumnBase)
    DataGridCellRenderer<View, View>.ResetCurrentCellState()
    DataGridCellRenderer<View, View>.ResumeBinding(DataColumnBase, View)
    DataGridCellRenderer<View, View>.SetCellStyle(DataColumnBase)
    DataGridCellRenderer<View, View>.SetControlValue(Object)
    DataGridCellRenderer<View, View>.SetCurrentCellState(RowColumnIndex, DataGridCell, Boolean)
    DataGridCellRenderer<View, View>.SetFocus(Boolean)
    DataGridCellRenderer<View, View>.SetFocus(View, Boolean)
    DataGridCellRenderer<View, View>.SupportsRenderOptimization
    DataGridCellRenderer<View, View>.SuspendBinding(DataColumnBase, View)
    DataGridCellRenderer<View, View>.UnloadViews(DataColumnBase)
    DataGridCellRenderer<View, View>.UnwireEditUIElement(View)
    DataGridCellRenderer<View, View>.UpdateCellValue(DataColumnBase)
    DataGridCellRenderer<View, View>.UpdateColumnInfo(DataColumnBase)
    DataGridCellRenderer<View, View>.UpdateCurrentCellState(View, Boolean)
    DataGridCellRenderer<View, View>.UpdateEditViewCellStyle(DataColumnBase, View)
    DataGridCellRenderer<View, View>.WireEditUIElement(View)
    Namespace: Syncfusion.Maui.DataGrid
    Assembly: Syncfusion.Maui.DataGrid.dll
    Syntax
    public class DataGridCellTemplateRenderer : DataGridCellRenderer<View, View>, IDataGridCellRenderer, IDisposable
    Remarks

    DataGridCellTemplateRenderer loads a view inside the grid cell. using the CellTemplate or property of the DataGridTemplateColumn.

    Constructors

    DataGridCellTemplateRenderer()

    Initializes a new instance of the DataGridCellTemplateRenderer class.

    Declaration
    public DataGridCellTemplateRenderer()

    Methods

    CanUpdateBinding(DataColumnBase)

    ToDo

    Declaration
    public override bool CanUpdateBinding(DataColumnBase dataColumnBase)
    Parameters
    Type Name Description
    Syncfusion.Maui.DataGrid.DataColumnBase dataColumnBase

    The corresponding column for which the binding update should be determined.

    Returns
    Type
    System.Boolean
    Overrides
    Syncfusion.Maui.DataGrid.DataGridCellRenderer<Microsoft.Maui.Controls.View, Microsoft.Maui.Controls.View>.CanUpdateBinding(Syncfusion.Maui.DataGrid.DataColumnBase)

    GetControlValue()

    Returns the current cell value, only if the renderer's is true.

    Declaration
    public override object GetControlValue()
    Returns
    Type Description
    System.Object

    The current cell value.

    Overrides
    Syncfusion.Maui.DataGrid.DataGridCellRenderer<Microsoft.Maui.Controls.View, Microsoft.Maui.Controls.View>.GetControlValue()

    OnCreateDisplayUIView()

    Creates a new Microsoft.Maui.Controls.View.

    Declaration
    protected override View OnCreateDisplayUIView()
    Returns
    Type
    Microsoft.Maui.Controls.View
    Overrides
    Syncfusion.Maui.DataGrid.DataGridCellRenderer<Microsoft.Maui.Controls.View, Microsoft.Maui.Controls.View>.OnCreateDisplayUIView()

    OnInitializeDisplayView(DataColumnBase, View)

    Initializes settings of the display view.

    Declaration
    protected override void OnInitializeDisplayView(DataColumnBase dataColumn, View view)
    Parameters
    Type Name Description
    Syncfusion.Maui.DataGrid.DataColumnBase dataColumn
    Microsoft.Maui.Controls.View view
    Overrides
    Syncfusion.Maui.DataGrid.DataGridCellRenderer<Microsoft.Maui.Controls.View, Microsoft.Maui.Controls.View>.OnInitializeDisplayView(Syncfusion.Maui.DataGrid.DataColumnBase, Microsoft.Maui.Controls.View)

    OnInitializeEditView(DataColumnBase, View)

    Initializes the column element of a Syncfusion.Maui.DataGrid.DataColumn object with the given Microsoft.Maui.Controls.ContentView in edit data template.

    Declaration
    public override void OnInitializeEditView(DataColumnBase dataColumn, View view)
    Parameters
    Type Name Description
    Syncfusion.Maui.DataGrid.DataColumnBase dataColumn

    The dataColumn containing the details of the column.

    Microsoft.Maui.Controls.View view

    A Microsoft.Maui.Controls.View to be hosted inside the column element.

    Overrides
    Syncfusion.Maui.DataGrid.DataGridCellRenderer<Microsoft.Maui.Controls.View, Microsoft.Maui.Controls.View>.OnInitializeEditView(Syncfusion.Maui.DataGrid.DataColumnBase, Microsoft.Maui.Controls.View)

    OnSetCellStyle(DataColumnBase)

    Sets the style to the element of DataGridCellTemplateRenderer.

    Declaration
    protected override void OnSetCellStyle(DataColumnBase dataColumn)
    Parameters
    Type Name Description
    Syncfusion.Maui.DataGrid.DataColumnBase dataColumn
    Overrides
    Syncfusion.Maui.DataGrid.DataGridCellRenderer<Microsoft.Maui.Controls.View, Microsoft.Maui.Controls.View>.OnSetCellStyle(Syncfusion.Maui.DataGrid.DataColumnBase)

    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
    Syncfusion.Maui.DataGrid.DataGridCellRenderer<Microsoft.Maui.Controls.View, Microsoft.Maui.Controls.View>.OnUpdateCellValue(Syncfusion.Maui.DataGrid.DataColumnBase)

    SetFocus(View, Boolean)

    Sets the focus for the editing view.

    Declaration
    protected override void SetFocus(View view, bool needToFocus)
    Parameters
    Type Name Description
    Microsoft.Maui.Controls.View view

    The current cell renderer element.

    System.Boolean needToFocus

    Returns whether focus has to be set or not.

    Overrides
    Syncfusion.Maui.DataGrid.DataGridCellRenderer<Microsoft.Maui.Controls.View, Microsoft.Maui.Controls.View>.SetFocus(Microsoft.Maui.Controls.View, System.Boolean)

    Implements

    IDataGridCellRenderer
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved