Class NumericColumnValueConverter
A converter to apply for the formatting for the numeric columns.
Implements
IValueConverter
Inherited Members
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class NumericColumnValueConverter : IValueConverter
Constructors
NumericColumnValueConverter(DataGridNumericColumn)
Initializes a new instance of the NumericColumnValueConverter class.
Declaration
public NumericColumnValueConverter(DataGridNumericColumn column)
Parameters
| Type | Name | Description |
|---|---|---|
| DataGridNumericColumn | column |
Methods
Convert(object?, Type, object?, CultureInfo)
Formats the given value based on the CultureInfo of the NumericColumn.
Declaration
public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
Parameters
| Type | Name | Description |
|---|---|---|
| object | value | |
| Type | targetType | |
| object | parameter | |
| CultureInfo | culture |
Returns
| Type |
|---|
| object |
ConvertBack(object?, Type, object?, CultureInfo)
Formats the given value based on the CultureInfo of the NumericColumn.
Declaration
public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
Parameters
| Type | Name | Description |
|---|---|---|
| object | value | |
| Type | targetType | |
| object | parameter | |
| CultureInfo | culture |
Returns
| Type |
|---|
| object |
ConvertToFormat(DataGridColumn, decimal)
Convert column value to numeric format.
Declaration
protected string ConvertToFormat(DataGridColumn column, decimal columnValue)
Parameters
| Type | Name | Description |
|---|---|---|
| DataGridColumn | column | |
| decimal | columnValue |
Returns
| Type |
|---|
| string |
Implements
Microsoft.Maui.Controls.IValueConverter