Class GridDateTimeColumn
Represents a column that used to display and edit the date time values of the cell.
Inheritance
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class GridDateTimeColumn : GridColumn, IDisposable, IFilterDefinition
Constructors
GridDateTimeColumn()
Initializes a new instance of the GridDateTimeColumn class.
Declaration
public GridDateTimeColumn()
Properties
AllowNull
Gets or sets a value indicating whether the null values are allowed in the DateTime column or not.
Declaration
[Cloneable(true)]
public bool AllowNull { get; set; }
Property Value
Type |
---|
System.Boolean |
AllowValueChangeOnMouseWheel
Gets or sets a value indicating whether the value change can occur on mouse wheel.
Declaration
[Cloneable(true)]
public bool AllowValueChangeOnMouseWheel { get; set; }
Property Value
Type |
---|
System.Boolean |
Remarks
Default value is false. It will work only when the DateTimeEditingMode is set to DateTimeEditingMode.Default.
DateTimeEditingMode
Gets or sets the editing mode for the DateTime edit control.
Declaration
[Cloneable(true)]
public DateTimeEditingMode DateTimeEditingMode { get; set; }
Property Value
Type |
---|
DateTimeEditingMode |
InterceptArrowKeys
Gets or sets a value indicating whether the value can be changed using the UP ARROW and DOWN ARROW keys.
Declaration
[Cloneable(true)]
public bool InterceptArrowKeys { get; set; }
Property Value
Type |
---|
System.Boolean |
MaxDateTime
Gets or sets the maximum value of the DateTime column.
Declaration
[Cloneable(true)]
public DateTime MaxDateTime { get; set; }
Property Value
Type |
---|
System.DateTime |
MinDateTime
Gets or sets the minimum value of the DateTime column.
Declaration
[Cloneable(true)]
public DateTime MinDateTime { get; set; }
Property Value
Type |
---|
System.DateTime |
NullValue
Gets or sets the DateTime value which needs to be displayed instead of the null value of the column.
Declaration
[Cloneable(true)]
public DateTime? NullValue { get; set; }
Property Value
Type |
---|
System.Nullable<System.DateTime> |
Pattern
Gets or sets the DateTime pattern for the column.
Declaration
[Cloneable(true)]
public DateTimePattern Pattern { get; set; }
Property Value
Type |
---|
DateTimePattern |
ShowDropDownButton
Gets or sets a value indicating whether the drop down button can be visible or not.
Declaration
[Cloneable(true)]
public bool ShowDropDownButton { get; set; }
Property Value
Type |
---|
System.Boolean |
Remarks
Default value is true.
Methods
GetFormattedValue(Object, Object)
Overridden to get the formatted cell value.
Declaration
protected override object GetFormattedValue(object record, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | record | A record value. |
System.Object | value | Display text value. |
Returns
Type | Description |
---|---|
System.Object | Returns the formatted value. |