Class DataGridPercentEditMode
Specifies how percentage values are displayed and edited in a DataGridPercentColumn.
Inheritance
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public sealed class DataGridPercentEditMode : Enum
Remarks
This enumeration controls the formatting of percentage values in both display mode (cell rendering) and edit mode (SfNumericEntry). The underlying data value is always stored as a numeric type (double, decimal, or nullable numeric).
Fields
DoubleMode
Display the underlying value as-is with a percent symbol appended. Example: 0.25 (stored internally) → "0.25%" (displayed/edited).
Declaration
public const DataGridPercentEditMode DoubleMode
Field Value
| Type |
|---|
| DataGridPercentEditMode |
Remarks
Use this mode when your underlying data is already in decimal form and you want to display it with the percentage symbol without multiplication.
PercentMode
Multiply the underlying value by 100 for display/edit. Example: 0.25 (stored internally) → "25%" (displayed/edited).
Declaration
public const DataGridPercentEditMode PercentMode
Field Value
| Type |
|---|
| DataGridPercentEditMode |
Remarks
This is the default mode and is most commonly used for percentage representations where values are stored as decimals (0-1 range).