Class NumericColumnValueConverter
A converter to apply for the formatting for the numeric columns.
Inheritance
System.Object
NumericColumnValueConverter
Implements
Microsoft.Maui.Controls.IValueConverter
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class NumericColumnValueConverter : Object, 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 |
---|---|---|
System.Object | value | |
System.Type | targetType | |
System.Object | parameter | |
System.Globalization.CultureInfo | culture |
Returns
Type |
---|
System.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 |
---|---|---|
System.Object | value | |
System.Type | targetType | |
System.Object | parameter | |
System.Globalization.CultureInfo | culture |
Returns
Type |
---|
System.Object |
ConvertToFormat(DataGridColumn, Decimal)
Convert column value to numeric format.
Declaration
protected string ConvertToFormat(DataGridColumn column, Decimal columnValue)
Parameters
Type | Name | Description |
---|---|---|
DataGridColumn | column | |
System.Decimal | columnValue |
Returns
Type |
---|
System.String |
Implements
Microsoft.Maui.Controls.IValueConverter