menu

UWP

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

    Show / Hide Table of Contents

    Class GridDateTimeColumn

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

    Inheritance
    System.Object
    SfGridColumnBase<SfGridBase>
    GridColumnBase
    GridColumn
    GridTextColumnBase
    GridDateTimeColumn
    Implements
    System.IDisposable
    INotifyDependencyPropertyChanged
    IFilterDefinition
    Inherited Members
    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.ColumnSizer
    GridColumn.ColumnSizerProperty
    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.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.DisplayBinding
    GridColumnBase.GridValidationMode
    GridColumnBase.GridValidationModeProperty
    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
    SfGridColumnBase<SfGridBase>.Dispose()
    Namespace: Syncfusion.UI.Xaml.Grid
    Assembly: Syncfusion.SfGrid.UWP.dll
    Syntax
    public class GridDateTimeColumn : GridTextColumnBase, IDisposable, INotifyDependencyPropertyChanged, IFilterDefinition
    Examples
    <syncfusion:SfDataGrid x:Name="dataGrid" AutoGenerateColumns="False" ItemsSource="{Binding Orders}" >
      <syncfusion:SfDataGrid.Columns>
        <syncfusion:GridDateTimeColumn CustomPattern = "dd-m-yyyy hh:mm:ss"
                                       HeaderText="Order Date"
                                       MappingName="OrderDate"
                                       Pattern="CustomPattern" 
                                       AllowNullValue="True" 
                                       CanEdit = "True"
                                       ShowRepeatButton = "False"/>
      </syncfusion:SfDataGrid.Columns>
    </syncfusion:SfDataGrid>

    Constructors

    GridDateTimeColumn()

    Initializes a new instance of GridDateTimeColumn class.

    Declaration
    public GridDateTimeColumn()

    Fields

    AccentBrushProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.AccentBrush dependency property.

    Declaration
    public static readonly DependencyProperty AccentBrushProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.AccentBrush dependency property.

    AllowInlineEditingProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.AllowInlineEditing dependency property.

    Declaration
    public static readonly DependencyProperty AllowInlineEditingProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.AllowInlineEditing dependency property.

    AllowNullValueProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.AllowNullValue dependency property.

    Declaration
    public static readonly DependencyProperty AllowNullValueProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.AllowNullValue dependency property.

    DropDownHeightProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.DropDownHeight dependency property.

    Declaration
    public static readonly DependencyProperty DropDownHeightProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.DropDownHeight dependency property.

    FormatStringProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.FormatString dependency property.

    Declaration
    public static readonly DependencyProperty FormatStringProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.FormatString dependency property.

    InputScopeProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.InputScope dependency property.

    Declaration
    public static readonly DependencyProperty InputScopeProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.InputScope dependency property.

    IsDropDownOpenProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.IsDropDownOpen dependency property.

    Declaration
    public static readonly DependencyProperty IsDropDownOpenProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.IsDropDownOpen dependency property.

    MaxDateProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.MaxDate dependency property.

    Declaration
    public static readonly DependencyProperty MaxDateProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.MaxDate dependency property.

    MinDateProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.MinDate dependency property.

    Declaration
    public static readonly DependencyProperty MinDateProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.MinDate dependency property.

    SelectorFormatStringProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.SelectorFormatString dependency property.

    Declaration
    public static readonly DependencyProperty SelectorFormatStringProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.SelectorFormatString dependency property.

    SelectorItemCountProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.InputScope dependency property.

    Declaration
    public static readonly DependencyProperty SelectorItemCountProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.InputScope dependency property.

    SelectorItemHeightProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.SelectorItemHeight dependency property.

    Declaration
    public static readonly DependencyProperty SelectorItemHeightProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.SelectorItemHeight dependency property.

    SelectorItemSpacingProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.SelectorItemSpacing dependency property.

    Declaration
    public static readonly DependencyProperty SelectorItemSpacingProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.SelectorItemSpacing dependency property.

    SelectorItemWidthProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.SelectorItemWidth dependency property.

    Declaration
    public static readonly DependencyProperty SelectorItemWidthProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.SelectorItemWidth dependency property.

    ShowDropDownButtonProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.ShowDropDownButton dependency property.

    Declaration
    public static readonly DependencyProperty ShowDropDownButtonProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.ShowDropDownButton dependency property.

    WaterMarkProperty

    Identifies the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.WaterMark dependency property.

    Declaration
    public static readonly DependencyProperty WaterMarkProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.GridDateTimeColumn.WaterMark dependency property.

    Properties

    AccentBrush

    Gets or sets the Accent brush for the date selector items of GridDateTimeColumn.

    Declaration
    public Brush AccentBrush { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.Media.Brush

    The brush for the date selector items of GridDateTimeColumn. The default value is SlateBlue.

    AllowInlineEditing

    Gets or sets a value that indicates whether the editing is enabled for GridDateTimeColumn.

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

    true if the editing is enabled; otherwise, false.

    AllowNullValue

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

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

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

    DropDownHeight

    Gets or sets the height of the drop-down of GridDateTimeColumn.

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

    The height of the drop-down of GridDateTimeColumn. The default value is 400.0 .

    FormatString

    Gets or sets a string that specifies how to format the bounded value in GridDateTimeColumn.

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

    A string that specifies how to format the bound value in GridDateTimeColumn. The default value is string.Empty.

    InputScope

    Gets or sets the input scope of the on-screen keyboard for GridDateTimeColumn.

    Declaration
    public InputScopeNameValue InputScope { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.Input.InputScopeNameValue

    One of the Windows.UI.Xaml.Input.InputScopeNameValue that specifies the input scope for GridDateTimeColumn. The default value Windows.UI.Xaml.Input.InputScopeNameValue.Default.

    IsDropDownOpen

    Gets or sets a value that indicates whether the drop-down of GridDateTimeColumn is currently open.

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

    true if the drop-down is open; otherwise, false. The default value is false.

    MaxDate

    Gets or sets the maximum date and time that can be selected in GridDateTimeColumn.

    Declaration
    public DateTime MaxDate { get; set; }
    Property Value
    Type Description
    System.DateTime

    The maximum date and time that can be selected in GridDateTimeColumn.

    MinDate

    Gets or sets the minimum date and time that can be selected in GridDateTimeColumn.

    Declaration
    public DateTime MinDate { get; set; }
    Property Value
    Type Description
    System.DateTime

    The minimum date and time that can be selected in GridDateTimeColumn.

    SelectorFormatString

    Gets or sets the SelectorFormatString for the date picker column

    Declaration
    public object SelectorFormatString { get; set; }
    Property Value
    Type
    System.Object

    SelectorItemCount

    Gets or sets the SelectorItemCount for the date selector items

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

    The default value is 0

    SelectorItemHeight

    Gets or sets the height of the date selector items in GridDateTimeColumn.

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

    The height of the date selector items. The default value is 80.

    SelectorItemSpacing

    Gets or sets the space for between the date, month and year items in the selector of GridDateTimeColumn.

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

    The space between the items in the selector. The default value is 4.

    SelectorItemWidth

    Gets or sets the width of the date selector items in GridDateTimeColumn.

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

    The width of the date selector items. The default value is 80.

    ShowDropDownButton

    Gets or sets a value that indicates whether a drop-down button control is used to adjust the date time value.

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

    true if the drop-down button is used to adjust the date time value ; otherwise , false. The default value is true.

    WaterMark

    Gets or sets the content displayed as a watermark in GridDateTimeColumn when its cell contains empty value.

    Declaration
    public object WaterMark { get; set; }
    Property Value
    Type Description
    System.Object

    The content displayed as a watermark in GridDateTimeColumn when its cell contains empty value. The default value is string.Empty .

    Methods

    SetDisplayBindingConverter()

    Sets the converter for the of column.

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

    You can override this method to specify the converter for .

    UpdateBindingBasedOnAllowEditing()

    Updates the binding for the AllowEdit property changes in GridDateTimeColumn.

    Declaration
    protected override void UpdateBindingBasedOnAllowEditing()
    Overrides
    GridColumn.UpdateBindingBasedOnAllowEditing()

    Implements

    System.IDisposable
    INotifyDependencyPropertyChanged
    IFilterDefinition

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved