Class GridNumericColumnConverter
A converter to apply for numeric column.
Implements
Xamarin.Forms.IValueConverter
Inherited Members
Namespace: Syncfusion.SfDataGrid.XForms
Assembly: Syncfusion.SfDataGrid.XForms.dll
Syntax
public class GridNumericColumnConverter : GridEditorColumnConverter, IValueConverter
Constructors
GridNumericColumnConverter(GridNumericColumn)
Initializes a new instance of the GridNumericColumnConverter class.
Declaration
public GridNumericColumnConverter(GridNumericColumn column)
Parameters
Type | Name | Description |
---|---|---|
GridNumericColumn | column | The GridNumericColumn which holds numeric Content in its cells. |
Methods
Convert(Object, Type, Object, CultureInfo)
Formats the given value based on the CultureInfo of the NumericColumn.
Declaration
public override object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value to be formatted. |
System.Type | targetType | The target type to be converted. |
System.Object | parameter | The converter parameter. |
System.Globalization.CultureInfo | culture | The culture info based on which the given value is to be formatted. |
Returns
Type | Description |
---|---|
System.Object | Returns the formatted value based on the CultureInfo of the NumericColumn. |
Overrides
ConvertToFormat(GridColumn, Decimal)
Convert column value to numeric format.
Declaration
protected override string ConvertToFormat(GridColumn column, Decimal columnValue)
Parameters
Type | Name | Description |
---|---|---|
GridColumn | column | The numeric column. |
System.Decimal | columnValue | The column value. |
Returns
Type | Description |
---|---|
System.String | The numeric format of the given column value. |
Overrides
Implements
Xamarin.Forms.IValueConverter