Class GridDateTimeColumn
Represents a column that displays the date time values in its cell content.
Inheritance
Inherited Members
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
Declaration
protected override void SetDisplayBindingConverter()
Overrides
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()