Class DataGridNumericColumn
A column which is used to handle the numeric values.
Implements
Inherited Members
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class DataGridNumericColumn : DataGridColumn, IDisposable
Constructors
DataGridNumericColumn()
Initializes a new instance of the DataGridNumericColumn class.
Declaration
public DataGridNumericColumn()
Fields
AllowNullValueProperty
Bindable property of AllowNullValue.
Declaration
public static readonly BindableProperty AllowNullValueProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
MaximumProperty
Bindable property for Maximum
Declaration
public static readonly BindableProperty MaximumProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
MinimumProperty
Bindable property for Minimum
Declaration
public static readonly BindableProperty MinimumProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
NullValueProperty
Bindable property for NullValue
Declaration
public static readonly BindableProperty NullValueProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
PlaceholderProperty
Bindable property for Placeholder
Declaration
public static BindableProperty PlaceholderProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
ShowClearButtonProperty
Bindable property for ShowClearButton
Declaration
public static readonly BindableProperty ShowClearButtonProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Properties
AllowNullValue
Gets or sets a System.Boolean value indicating whether to commit null values to the DataGridNumericColumn. This is a bindable property.
Declaration
public bool AllowNullValue { get; set; }
Property Value
Type |
---|
System.Boolean |
Maximum
Gets or sets the maximum value constraint of the column.
Declaration
public Decimal Maximum { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal | The maximum value constraint of the column. |
Minimum
Gets or sets the minimum value constraint of the column.
Declaration
public Decimal Minimum { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal | The minimum value constraint of the column. |
NullValue
Gets or sets an object that is displayed instead of null value if the cell value is null, provided that AllowNullValue is enabled.
Declaration
public object NullValue { get; set; }
Property Value
Type |
---|
System.Object |
Placeholder
Gets or sets a string that is displayed instead of null value if the cell value is null, provided that AllowNullValue is enabled.
Declaration
public string Placeholder { get; set; }
Property Value
Type |
---|
System.String |
ShowClearButton
Gets or sets a value indicating whether to display the clear text button when the grid cell of the numeric column enters edit mode.
Declaration
public bool ShowClearButton { get; set; }
Property Value
Type |
---|
System.Boolean |
Methods
GetFormattedValue(Object)
Gets the Formatted value for the Content of a record cell in the column based on the Format of the column.
Declaration
public override object GetFormattedValue(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value |
Returns
Type |
---|
System.Object |
Overrides
SetConverterForDisplayBinding()
Sets the converter for the DisplayBinding of a column.
Declaration
protected override void SetConverterForDisplayBinding()