menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridNumericColumnConverter - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridNumericColumnConverter

    A converter to apply for numeric column.

    Inheritance
    System.Object
    GridEditorColumnConverter
    GridNumericColumnConverter
    Implements
    Xamarin.Forms.IValueConverter
    Inherited Members
    GridEditorColumnConverter.ConvertBack(Object, Type, Object, CultureInfo)
    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
    GridEditorColumnConverter.Convert(Object, Type, Object, CultureInfo)

    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
    GridEditorColumnConverter.ConvertToFormat(GridColumn, Decimal)

    Implements

    Xamarin.Forms.IValueConverter
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved