menu

Xamarin.Android

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

    Show / Hide Table of Contents

    Class GridNumericColumn

    Represents a SfDataGrid column that hosts numeric content in its cells.

    Inheritance
    System.Object
    GridColumn
    GridEditorColumn
    GridNumericColumn
    Implements
    System.IDisposable
    Inherited Members
    GridColumn.ActualWidth
    GridColumn.AllowEditing
    GridColumn.AllowSorting
    GridColumn.CanEditCell()
    GridColumn.CellTextSize
    GridColumn.CellType
    GridColumn.ColumnSizer
    GridColumn.CultureInfo
    GridColumn.Dispose()
    GridColumn.Format
    GridColumn.GroupMode
    GridColumn.HeaderCellTextSize
    GridColumn.HeaderFont
    GridColumn.HeaderTemplate
    GridColumn.HeaderText
    GridColumn.HeaderTextAlignment
    GridColumn.HeaderTextMargin
    GridColumn.IsHidden
    GridColumn.LineBreakMode
    GridColumn.LoadUIView
    GridColumn.MappingName
    GridColumn.MaximumWidth
    GridColumn.MinimumWidth
    GridColumn.RecordFont
    GridColumn.SetGrid(SfDataGrid)
    GridColumn.SortMode
    GridColumn.TextAlignment
    GridColumn.TextMargin
    GridColumn.UserCellType
    GridColumn.Width
    GridEditorColumn.AllowNullValue
    GridEditorColumn.MaxValue
    GridEditorColumn.MinValue
    GridEditorColumn.NullText
    GridEditorColumn.NullValue
    Namespace: Syncfusion.SfDataGrid
    Assembly: Syncfusion.SfDataGrid.Android.dll
    Syntax
    public class GridNumericColumn : GridEditorColumn, IDisposable
    Remarks

    Use GridNumericColumn to display columns of data in numeric format.

    To create a column, add it to the Columns collection. To populate the column, assign the column to the numeric data by using the MappingName property. The value is applied to each and every Android.Widget.TextView view created in the column.

    Constructors

    GridNumericColumn()

    Initializes a new instance of the GridNumericColumn class.

    Declaration
    public GridNumericColumn()

    Properties

    NumberDecimalDigits

    Gets or sets the number of decimal places to use in numeric values.

    Declaration
    public int NumberDecimalDigits { get; set; }
    Property Value
    Type Description
    System.Int32

    The number of decimal places to use in numeric values.

    Examples
    GridNumericColumn numericColumn = new GridNumericColumn()
    {
        MappingName = "ProductNo",
        HeaderText = "Product No",
        NumberDecimalDigits = 0
    };
    See Also
    https://help.syncfusion.com/xamarin-android/sfdatagrid/column-types#number-formatting

    NumberDecimalSeparator

    Gets or sets the string to use as the decimal separator in numeric values.

    Declaration
    public string NumberDecimalSeparator { get; set; }
    Property Value
    Type Description
    System.String

    The string to use as the decimal separator in numeric values.

    Examples
    GridNumericColumn numericColumn = new GridNumericColumn()
    {
        MappingName = "ProductNo",
        HeaderText = "Product No",
        NumberDecimalSeparator = ":"
    };
    See Also
    https://help.syncfusion.com/xamarin-android/sfdatagrid/column-types#number-formatting

    NumberGroupSeparator

    Gets or sets the string that separates groups of digits to the left of the decimal in numeric values.

    Declaration
    public string NumberGroupSeparator { get; set; }
    Property Value
    Type Description
    System.String

    The string that separates groups of digits to the left of the decimal in numeric values.

    Examples
    GridNumericColumn numericColumn = new GridNumericColumn()
    {
        MappingName = "ProductNo",
        HeaderText = "Product No",
        NumberGroupSeparator = "'"
    };
    See Also
    https://help.syncfusion.com/xamarin-android/sfdatagrid/column-types#number-formatting

    NumberGroupSizes

    Gets or sets the number of digits in each group to the left of the decimal in numeric values.

    Declaration
    public int[] NumberGroupSizes { get; set; }
    Property Value
    Type Description
    System.Int32[]

    The number of digits in each group to the left of the decimal in numeric values.

    Examples
    GridNumericColumn numericColumn = new GridNumericColumn()
    {
        MappingName = "ProductNo",
        HeaderText = "Product No",
        NumberGroupSizes = 3
    };
    See Also
    https://help.syncfusion.com/xamarin-android/sfdatagrid/column-types#number-formatting

    NumberNegativePattern

    Gets or sets the format pattern for negative numeric values.

    Declaration
    public int NumberNegativePattern { get; set; }
    Property Value
    Type Description
    System.Int32

    The format pattern for negative numeric values.

    See Also
    https://help.syncfusion.com/xamarin-android/sfdatagrid/column-types#number-formatting

    Methods

    Dispose(Boolean)

    Releases the unmanaged resources used by the component and optionally releases the managed resources.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    if true - release both managed and unmanaged resources; if false - release only unmanaged resources.

    Overrides
    GridEditorColumn.Dispose(Boolean)

    GetFormattedValue(Object)

    Gets the Formatted value for the content of a record cell in the column based on the Format and CultureInfo of the column.

    Declaration
    public override object GetFormattedValue(object value)
    Parameters
    Type Name Description
    System.Object value

    The actual value of the record cell in the column.

    Returns
    Type Description
    System.Object

    The formatted value based on the Format and CultureInfo properties of the column.

    Overrides
    GridColumn.GetFormattedValue(Object)

    Implements

    System.IDisposable

    See Also

    https://help.syncfusion.com/xamarin-android/sfdatagrid/column-types#gridnumericcolumn
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved