Class GridNumericColumn
Represents a SfDataGrid column that hosts numeric content in its cells.
Implements
Inherited Members
Namespace: Syncfusion.SfDataGrid
Assembly: Syncfusion.SfDataGrid.iOS.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 UIKit.UILabel 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
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
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
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
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
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
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. |