alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class DataGridPercentCellRenderer

    A cell renderer that displays percentage values in DataGridCell. Supports dual display modes: PercentMode (multiply by 100) and DoubleMode (display as-is).

    Inheritance
    System.Object
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>
    DataGridPercentCellRenderer
    Implements
    IDataGridCellRenderer
    System.IDisposable
    Inherited Members
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.BeginEdit(RowColumnIndex, DataGridCell, DataGridColumn, Object)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.CanUpdateBinding(DataColumnBase)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.CanValidate()
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.ClearRecycleBin()
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.CommitCellValue(Boolean)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.CurrentCellElement
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.CurrentCellIndex
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.CurrentCellRendererElement
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.DataGrid
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.Dispose()
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.Dispose(Boolean)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.EndEdit(DataColumnBase, Object, Boolean)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.GetControlValue()
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.HasCurrentCellState
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.IsEditable
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.IsFocusable
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.IsInEditing
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.OnCreateDisplayUIView()
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.OnCreateEditUIView()
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.OnEnteredEditMode(DataColumnBase, View)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.OnInitializeDisplayView(DataColumnBase, SfDataGridLabel)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.OnInitializeEditView(DataColumnBase, SfNumericEntry)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.OnPrepareViews(DataColumnBase)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.OnSetCellStyle(DataColumnBase)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.OnUnloadViews(DataColumnBase)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.OnUpdateCellValue(DataColumnBase)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.PrepareViews(DataColumnBase)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.RefreshDisplayValue(DataColumnBase)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.ResetCurrentCellState()
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.ResumeBinding(DataColumnBase, SfDataGridLabel)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.SetCellBackground(DataColumnBase)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.SetCellStyle(DataColumnBase)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.SetControlValue(Object)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.SetCurrentCellState(RowColumnIndex, DataGridCell, Boolean)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.SetFocus(Boolean)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.SetFocus(View, Boolean)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.SupportsRenderOptimization
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.SuspendBinding(DataColumnBase, SfDataGridLabel)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.UnloadViews(DataColumnBase)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.UnwireEditUIElement(SfNumericEntry)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.UpdateCellValue(DataColumnBase)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.UpdateColumnInfo(DataColumnBase)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.UpdateCurrentCellState(View, Boolean)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.UpdateEditViewCellStyle(DataColumnBase, SfNumericEntry)
    DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>.WireEditUIElement(SfNumericEntry)
    Namespace: Syncfusion.Maui.DataGrid
    Assembly: Syncfusion.Maui.DataGrid.dll
    Syntax
    public class DataGridPercentCellRenderer : DataGridCellRenderer<SfDataGridLabel, SfNumericEntry>, IDataGridCellRenderer, IDisposable

    Constructors

    DataGridPercentCellRenderer()

    Initializes a new instance of the DataGridPercentCellRenderer class.

    Declaration
    public DataGridPercentCellRenderer()

    Methods

    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 (numeric, not formatted).

    Overrides
    Syncfusion.Maui.DataGrid.DataGridCellRenderer<Syncfusion.Maui.DataGrid.SfDataGridLabel, Syncfusion.Maui.Inputs.SfNumericEntry>.GetControlValue()

    OnCreateDisplayUIView()

    Creates the view for the display UI.

    Declaration
    protected override SfDataGridLabel OnCreateDisplayUIView()
    Returns
    Type
    SfDataGridLabel
    Overrides
    Syncfusion.Maui.DataGrid.DataGridCellRenderer<Syncfusion.Maui.DataGrid.SfDataGridLabel, Syncfusion.Maui.Inputs.SfNumericEntry>.OnCreateDisplayUIView()

    OnCreateEditUIView()

    Creates a new view for the edit mode of cell.

    Declaration
    protected override SfNumericEntry OnCreateEditUIView()
    Returns
    Type
    SfNumericEntry
    Overrides
    Syncfusion.Maui.DataGrid.DataGridCellRenderer<Syncfusion.Maui.DataGrid.SfDataGridLabel, Syncfusion.Maui.Inputs.SfNumericEntry>.OnCreateEditUIView()

    OnInitializeEditView(DataColumnBase, SfNumericEntry)

    Initializes the edit column element with the current percentage value formatted according to PercentEditMode.

    Declaration
    public override void OnInitializeEditView(DataColumnBase dataColumn, SfNumericEntry view)
    Parameters
    Type Name Description
    Syncfusion.Maui.DataGrid.DataColumnBase dataColumn
    SfNumericEntry view
    Overrides
    Syncfusion.Maui.DataGrid.DataGridCellRenderer<Syncfusion.Maui.DataGrid.SfDataGridLabel, Syncfusion.Maui.Inputs.SfNumericEntry>.OnInitializeEditView(Syncfusion.Maui.DataGrid.DataColumnBase, Syncfusion.Maui.Inputs.SfNumericEntry)

    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<Syncfusion.Maui.DataGrid.SfDataGridLabel, Syncfusion.Maui.Inputs.SfNumericEntry>.OnUpdateCellValue(Syncfusion.Maui.DataGrid.DataColumnBase)

    ResumeBinding(DataColumnBase, SfDataGridLabel)

    Resume the binding of a SfLabel view for display.

    Declaration
    protected override void ResumeBinding(DataColumnBase dataColumn, SfDataGridLabel view)
    Parameters
    Type Name Description
    Syncfusion.Maui.DataGrid.DataColumnBase dataColumn
    SfDataGridLabel view
    Overrides
    Syncfusion.Maui.DataGrid.DataGridCellRenderer<Syncfusion.Maui.DataGrid.SfDataGridLabel, Syncfusion.Maui.Inputs.SfNumericEntry>.ResumeBinding(Syncfusion.Maui.DataGrid.DataColumnBase, Syncfusion.Maui.DataGrid.SfDataGridLabel)

    SetControlValue(Object)

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

    Declaration
    public override void SetControlValue(object value)
    Parameters
    Type Name Description
    System.Object value

    The numeric value to be set to the current cell.

    Overrides
    Syncfusion.Maui.DataGrid.DataGridCellRenderer<Syncfusion.Maui.DataGrid.SfDataGridLabel, Syncfusion.Maui.Inputs.SfNumericEntry>.SetControlValue(System.Object)

    SuspendBinding(DataColumnBase, SfDataGridLabel)

    Suspend the binding of a SfLabel view for display.

    Declaration
    protected override void SuspendBinding(DataColumnBase dataColumn, SfDataGridLabel view)
    Parameters
    Type Name Description
    Syncfusion.Maui.DataGrid.DataColumnBase dataColumn
    SfDataGridLabel view
    Overrides
    Syncfusion.Maui.DataGrid.DataGridCellRenderer<Syncfusion.Maui.DataGrid.SfDataGridLabel, Syncfusion.Maui.Inputs.SfNumericEntry>.SuspendBinding(Syncfusion.Maui.DataGrid.DataColumnBase, Syncfusion.Maui.DataGrid.SfDataGridLabel)

    UnwireEditUIElement(SfNumericEntry)

    Unwires the edit element to the view.

    Declaration
    protected override void UnwireEditUIElement(SfNumericEntry editElement)
    Parameters
    Type Name Description
    SfNumericEntry editElement
    Overrides
    Syncfusion.Maui.DataGrid.DataGridCellRenderer<Syncfusion.Maui.DataGrid.SfDataGridLabel, Syncfusion.Maui.Inputs.SfNumericEntry>.UnwireEditUIElement(Syncfusion.Maui.Inputs.SfNumericEntry)

    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
    SfNumericEntry editView
    Overrides
    Syncfusion.Maui.DataGrid.DataGridCellRenderer<Syncfusion.Maui.DataGrid.SfDataGridLabel, Syncfusion.Maui.Inputs.SfNumericEntry>.UpdateEditViewCellStyle(Syncfusion.Maui.DataGrid.DataColumnBase, Syncfusion.Maui.Inputs.SfNumericEntry)

    Implements

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