menu

WinUI

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

    Show / Hide Table of Contents

    Class GridNumericColumn

    Represents a column that displays the numeric values in its cell content.

    Inheritance
    System.Object
    ColumnBase<SfGridBase>
    GridColumnBase
    GridColumn
    GridTextColumnBase
    GridNumericColumn
    Implements
    System.IDisposable
    INotifyDependencyPropertyChanged
    IFilterDefinition
    Inherited Members
    ColumnBase<SfGridBase>.Dispose()
    GridColumn.AllowBlankFilters
    GridColumn.AllowBlankFiltersProperty
    GridColumn.AllowDragging
    GridColumn.AllowDraggingProperty
    GridColumn.AllowFiltering
    GridColumn.AllowFilteringProperty
    GridColumn.AllowGrouping
    GridColumn.AllowGroupingProperty
    GridColumn.AllowResizing
    GridColumn.AllowResizingProperty
    GridColumn.CanAllowSpinOnMouseScroll()
    GridColumn.CanEditCell(Int32)
    GridColumn.CanEndEditColumn()
    GridColumn.CanFocus()
    GridColumn.CellType
    GridColumn.ColumnFilter
    GridColumn.ColumnMemberType
    GridColumn.ColumnWidthMode
    GridColumn.ColumnWidthModeProperty
    GridColumn.DataGrid
    GridColumn.Dispose(Boolean)
    GridColumn.FilterBehavior
    GridColumn.FilteredFrom
    GridColumn.FilterPopupStyle
    GridColumn.FilterPopupStyleProperty
    GridColumn.FilterPopupTemplate
    GridColumn.FilterPopupTemplateProperty
    GridColumn.FilterPredicates
    GridColumn.FilterRowCellStyle
    GridColumn.FilterRowCellStyleProperty
    GridColumn.FilterRowCondition
    GridColumn.FilterRowConditionProperty
    GridColumn.FilterRowEditorType
    GridColumn.FilterRowOptionsVisibility
    GridColumn.FilterRowOptionsVisibilityProperty
    GridColumn.FilterRowText
    GridColumn.FilterRowTextProperty
    GridColumn.GetFilterRowOptionsVisibility()
    GridColumn.GetRowFilterType()
    GridColumn.GroupMode
    GridColumn.GroupModeProperty
    GridColumn.ImmediateUpdateColumnFilter
    GridColumn.ImmediateUpdateColumnFilterProperty
    GridColumn.IsCaseSensitiveFilterRow
    GridColumn.IsCaseSensitiveFilterRowProperty
    GridColumn.IsHiddenColumn()
    GridColumn.OnCellTemplateChanged(DependencyPropertyChangedEventArgs)
    GridColumn.OnCellTemplateSelectorChanged(DependencyPropertyChangedEventArgs)
    GridColumn.OnDependencyPropertyChanged(String, DependencyPropertyChangedEventArgs)
    GridColumn.SetCellType(String)
    GridColumn.SetFilterRowText(String)
    GridColumn.SortMode
    GridColumn.SortModeProperty
    GridColumn.UpdateBindingBasedOnAllowEditing()
    GridColumn.UseBindingValue
    GridColumn.UseBindingValueProperty
    GridColumnBase.ActualWidth
    GridColumnBase.ActualWidthProperty
    GridColumnBase.AllowEditing
    GridColumnBase.AllowEditingProperty
    GridColumnBase.AllowFocus
    GridColumnBase.AllowFocusProperty
    GridColumnBase.AllowSorting
    GridColumnBase.AllowSortingProperty
    GridColumnBase.CanEditCell()
    GridColumnBase.CellStyle
    GridColumnBase.CellStyleProperty
    GridColumnBase.CellStyleSelector
    GridColumnBase.CellStyleSelectorProperty
    GridColumnBase.CellTemplate
    GridColumnBase.CellTemplateProperty
    GridColumnBase.CellTemplateSelector
    GridColumnBase.CellTemplateSelectorProperty
    GridColumnBase.DataValidationMode
    GridColumnBase.DataValidationModeProperty
    GridColumnBase.DisplayBinding
    GridColumnBase.HeaderStyle
    GridColumnBase.HeaderStyleProperty
    GridColumnBase.HeaderTemplate
    GridColumnBase.HeaderTemplateProperty
    GridColumnBase.HeaderText
    GridColumnBase.HeaderTextProperty
    GridColumnBase.HeaderToolTipTemplate
    GridColumnBase.HeaderToolTipTemplateProperty
    GridColumnBase.HorizontalHeaderContentAlignment
    GridColumnBase.HorizontalHeaderContentAlignmentProperty
    GridColumnBase.IsAutoGenerated
    GridColumnBase.IsHidden
    GridColumnBase.IsHiddenProperty
    GridColumnBase.IsReadOnly
    GridColumnBase.IsReadOnlyProperty
    GridColumnBase.IsTemplate
    GridColumnBase.MappingName
    GridColumnBase.MappingNameProperty
    GridColumnBase.MaximumWidth
    GridColumnBase.MaximumWidthProperty
    GridColumnBase.MinimumWidth
    GridColumnBase.MinimumWidthProperty
    GridColumnBase.OnUpdateBindingInfo(DependencyObject, DependencyPropertyChangedEventArgs)
    GridColumnBase.Padding
    GridColumnBase.PaddingProperty
    GridColumnBase.SetCellBoundToolTip
    GridColumnBase.SetCellBoundToolTipProperty
    GridColumnBase.SetCellBoundValue
    GridColumnBase.SetCellBoundValueProperty
    GridColumnBase.SetValueBindingConverter()
    GridColumnBase.ShowHeaderToolTip
    GridColumnBase.ShowHeaderToolTipProperty
    GridColumnBase.ShowToolTip
    GridColumnBase.ShowToolTipProperty
    GridColumnBase.TextAlignment
    GridColumnBase.TextAlignmentProperty
    GridColumnBase.ToolTipTemplate
    GridColumnBase.ToolTipTemplateProperty
    GridColumnBase.ToolTipTemplateSelector
    GridColumnBase.ToolTipTemplateSelectorProperty
    GridColumnBase.UpdateBindingForValidation(GridValidationMode)
    GridColumnBase.UpdateTrigger
    GridColumnBase.UpdateTriggerProperty
    GridColumnBase.ValueBinding
    GridColumnBase.VerticalAlignment
    GridColumnBase.VerticalAlignmentProperty
    GridColumnBase.Width
    GridColumnBase.WidthProperty
    GridTextColumnBase.TextTrimming
    GridTextColumnBase.TextTrimmingProperty
    GridTextColumnBase.TextWrapping
    GridTextColumnBase.TextWrappingProperty
    Namespace: Syncfusion.UI.Xaml.DataGrid
    Assembly: Syncfusion.Grid.WinUI.dll
    Syntax
    public class GridNumericColumn : GridTextColumnBase, IDisposable, INotifyDependencyPropertyChanged, IFilterDefinition
    Examples
    <syncfusion:SfDataGrid x:Name="dataGrid" AutoGenerateColumns="False" ItemsSource="{Binding Orders}" >
      <syncfusion:SfDataGrid.Columns>
        <syncfusion:GridNumericColumn
                                       HeaderText="Order ID"
                                       MappingName="OrderID"                                   
      </syncfusion:SfDataGrid.Columns>
    </syncfusion:SfDataGrid>

    Constructors

    GridNumericColumn()

    Initializes a new instance of the GridNumericColumn class.

    Declaration
    public GridNumericColumn()

    Fields

    AllowNullProperty

    Identifies the Syncfusion.UI.Xaml.DataGrid.GridNumericColumn.AllowNull dependency property.

    Declaration
    public static readonly DependencyProperty AllowNullProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.DataGrid.GridNumericColumn.AllowNull dependency property.

    DisplayNumberFormatProperty

    Identifies the Syncfusion.UI.Xaml.DataGrid.GridNumericColumn.DisplayNumberFormat dependency property.

    Declaration
    public static readonly DependencyProperty DisplayNumberFormatProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.DataGrid.GridNumericColumn.DisplayNumberFormat dependency property.

    MaxValueProperty

    Identifies the Syncfusion.UI.Xaml.DataGrid.GridNumericColumn.MaxValue dependency property.

    Declaration
    public static readonly DependencyProperty MaxValueProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.DataGrid.GridNumericColumn.MaxValue dependency property.

    MinValueProperty

    Identifies the Syncfusion.UI.Xaml.DataGrid.GridNumericColumn.MinValue dependency property.

    Declaration
    public static readonly DependencyProperty MinValueProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.DataGrid.GridNumericColumn.MinValue dependency property.

    NumberFormatterProperty

    Identifies the NumberFormatter dependency property.

    Declaration
    public static readonly DependencyProperty NumberFormatterProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the NumberFormatter dependency property.

    PlaceholderTextProperty

    Identifies the PlaceholderText dependency property.

    Declaration
    public static readonly DependencyProperty PlaceholderTextProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the PlaceholderText dependency property.

    UpDownPlacementModeProperty

    Identifies the UpDownPlacementMode dependency property.

    Declaration
    public static readonly DependencyProperty UpDownPlacementModeProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the UpDownPlacementMode dependency property.

    Properties

    AllowNull

    Gets or sets a value that indicates whether the null values are allowed in the column.

    Declaration
    public bool AllowNull { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the null values are allowed ; otherwise , false . The default value is true.

    DisplayNumberFormat

    Gets or sets the format used to specify the formatting of numeric value/>.

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

    The default value is null.

    Remarks

    Change the display format of the Value using DisplayNumberFormat or NumberFormatter. When both NumberFormatter and CustomFomat are specified, DisplayNumberFormat will take higher precedence than NumberFormatter. NumberFormatter.

    MaxValue

    Gets or sets the maximum numerical value that can be selected in the column.

    Declaration
    public double MaxValue { get; set; }
    Property Value
    Type Description
    System.Double

    The maximum allowed value for the GridNumericColumn. The default value is double.MaxValue.

    MinValue

    Gets or sets the minimum numerical value that can be selected in the column.

    Declaration
    public double MinValue { get; set; }
    Property Value
    Type Description
    System.Double

    The minimum allowed value for the GridNumericColumn The default value is double.MinValue.

    NumberFormatter

    Gets or sets the number formatter used to specify the formatting of numeric value/>.

    Declaration
    public INumberFormatter NumberFormatter { get; set; }
    Property Value
    Type Description
    Windows.Globalization.NumberFormatting.INumberFormatter

    The default value is null.

    Remarks

    Change the display format of the Value using NumberFormatter or DisplayNumberFormat. When both NumberFormatter and CustomFomat are specified, DisplayNumberFormat will take higher precedence than NumberFormatter. DisplayNumberFormat.

    PlaceholderText

    Gets or sets the text that is displayed in the cell until the value is changed by a user action or some other operation.

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

    The default value is "Enter a value".

    Examples
    <syncfuion:GridNumericColumn MappingName="Quantity" PlaceholderText ="Value" />

    UpDownPlacementMode

    Gets or sets a value that indicates the placement of up/down buttons used to increment or decrement the numeric value.

    Declaration
    public NumberBoxUpDownPlacementMode UpDownPlacementMode { get; set; }
    Property Value
    Type Description
    NumberBoxUpDownPlacementMode

    Default value is Hidden.

    Methods

    SetDisplayBindingConverter()

    Sets the converter for theDisplayBinding of column.

    Declaration
    protected override void SetDisplayBindingConverter()
    Overrides
    GridTextColumnBase.SetDisplayBindingConverter()
    Remarks

    You can override this method to specify the converter for DisplayBinding .

    Implements

    System.IDisposable
    INotifyDependencyPropertyChanged
    IFilterDefinition
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved