Class GridNumericColumn
Represents a column that displays the numeric values in its cell contents.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Grid
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class GridNumericColumn : GridEditorColumn, IDisposable, INotifyDependencyPropertyChanged, IFilterDefinition
Constructors
GridNumericColumn()
Initializes a new instance of the GridNumericColumn class.
Declaration
public GridNumericColumn()
Fields
NumberDecimalDigitsProperty
Identifies the Syncfusion.UI.Xaml.Grid.GridNumericColumn.NumberDecimalDigits dependency property.
Declaration
public static readonly DependencyProperty NumberDecimalDigitsProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Remarks
The identifier for the Syncfusion.UI.Xaml.Grid.GridNumericColumn.NumberDecimalDigits dependency property.
NumberDecimalSeparatorProperty
Identifies the Syncfusion.UI.Xaml.Grid.GridNumericColumn.NumberDecimalSeparator dependency property.
Declaration
public static readonly DependencyProperty NumberDecimalSeparatorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Remarks
The identifier for the Syncfusion.UI.Xaml.Grid.GridNumericColumn.NumberDecimalSeparator dependency property.
NumberGroupSeparatorProperty
Identifies the Syncfusion.UI.Xaml.Grid.GridNumericColumn.NumberGroupSeparator dependency property.
Declaration
public static readonly DependencyProperty NumberGroupSeparatorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Remarks
The identifier for the Syncfusion.UI.Xaml.Grid.GridNumericColumn.NumberGroupSeparator dependency property.
NumberGroupSizesProperty
Identifies the Syncfusion.UI.Xaml.Grid.GridNumericColumn.NumberGroupSizes dependency property.
Declaration
public static readonly DependencyProperty NumberGroupSizesProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Remarks
The identifier for the Syncfusion.UI.Xaml.Grid.GridNumericColumn.NumberGroupSizes dependency property.
NumberNegativePatternProperty
Identifies the Syncfusion.UI.Xaml.Grid.GridNumericColumn.NumberNegativePattern dependency property.
Declaration
public static readonly DependencyProperty NumberNegativePatternProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Remarks
The identifier for the Syncfusion.UI.Xaml.Grid.GridNumericColumn.NumberNegativePattern dependency property.
ParsingModeProperty
Identifies the Syncfusion.UI.Xaml.Grid.GridNumericColumn.ParsingMode dependency property.
Declaration
public static readonly DependencyProperty ParsingModeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Remarks
The identifier for the Syncfusion.UI.Xaml.Grid.GridNumericColumn.ParsingMode dependency property.
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
<syncfusion:SfDataGrid x:Name="dataGrid"
AutoGenerateColumns="False"
ItemsSource="{Binding Orders}">
<syncfusion:SfDataGrid.Columns>
<syncfusion:GridNumericColumn HeaderText = "Quantity"
MappingName="Quantity"
NumberDecimalDigits="5"/>
</syncfusion:SfDataGrid.Columns>
</syncfusion:SfDataGrid>
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. |
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. |
NumberGroupSizes
Gets or sets the number of digits in each group to the left of the decimal in numeric values.
Declaration
public Int32Collection NumberGroupSizes { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Int32Collection | The number of digits in each group to the left of the decimal in numeric values. |
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. |
ParsingMode
Gets or Sets a value that decides the type to cast the cell value in edit mode of GridNumericColumn.
Declaration
public ParseMode ParsingMode { get; set; }
Property Value
Type | Description |
---|---|
ParseMode | One of the ParseMode enumeration that specifies the type that want to cast on edit mode. The default value is Double. |
Methods
SetDisplayBindingConverter()
Sets the converter for the
Declaration
protected override void SetDisplayBindingConverter()
Overrides
Remarks
You can override this method to specify the converter for
SetValueBindingConverter()
Sets the converter for the
Declaration
protected override void SetValueBindingConverter()
Overrides
Remarks
You can override this method to specify the converter for
UpdateBindingBasedOnAllowEditing()
Updates the binding for the AllowEdit property changes in the GridNumericColumn.
Declaration
protected override void UpdateBindingBasedOnAllowEditing()