menu

WinForms

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

    Show / Hide Table of Contents

    Class GridDateTimeColumn

    Represents a column that used to display and edit the date time values of the cell.

    Inheritance
    System.Object
    SfGridColumnBase<TableControl>
    GridColumnBase
    GridColumn
    GridDateTimeColumn
    Implements
    System.IDisposable
    IFilterDefinition
    Inherited Members
    GridColumn.ToString()
    GridColumn.SetCellType(String)
    GridColumn.CellType
    GridColumn.Renderer
    GridColumn.TableControl
    GridColumnBase.Dispose(Boolean)
    GridColumnBase.AllowTextWrapping
    GridColumnBase.TextTrimming
    GridColumnBase.AllowHeaderTextWrapping
    GridColumnBase.ShowToolTip
    GridColumnBase.ShowHeaderToolTip
    GridColumnBase.AllowGrouping
    GridColumnBase.AllowDragging
    GridColumnBase.CellStyle
    GridColumnBase.AllowFiltering
    GridColumnBase.AllowResizing
    GridColumnBase.Visible
    GridColumnBase.AllowFocus
    GridColumnBase.HeaderStyle
    GridColumnBase.Width
    GridColumnBase.HeaderText
    GridColumnBase.AllowSorting
    GridColumnBase.IsAutoGenerated
    GridColumnBase.MappingName
    GridColumnBase.AutoSizeColumnsMode
    GridColumnBase.ActualWidth
    GridColumnBase.MinimumWidth
    GridColumnBase.MaximumWidth
    GridColumnBase.FilterMode
    GridColumnBase.ColumnMemberType
    GridColumnBase.FilterBehavior
    GridColumnBase.FilteredFrom
    GridColumnBase.ImmediateUpdateColumnFilter
    GridColumnBase.AllowBlankFilters
    GridColumnBase.FilterPopupMode
    GridColumnBase.AdvancedFilterType
    GridColumnBase.FilterPredicates
    GridColumnBase.Format
    GridColumnBase.FormatProvider
    GridColumnBase.NullDisplayText
    GridColumnBase.GroupMode
    GridColumnBase.SortMode
    GridColumnBase.AllowEditing
    GridColumnBase.ValidationMode
    GridColumnBase.FilterRowEditorType
    GridColumnBase.FilterRowCondition
    GridColumnBase.ShowFilterRowOptions
    GridColumnBase.FilterRowText
    GridColumnBase.EnableCaseSensitiveFilterRow
    GridColumnBase.EnableCaseSensitiveFiterRow
    GridColumnBase.HeaderImage
    GridColumnBase.AllowHeaderTextWithImage
    GridColumnBase.HeaderTextImageRelation
    SfGridColumnBase<TableControl>.Dispose()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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 Description
    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 Description
    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 Description
    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 Description
    System.Boolean

    MaxDateTime

    Gets or sets the maximum value of the DateTime column.

    Declaration
    [Cloneable(true)]
    public DateTime MaxDateTime { get; set; }
    Property Value
    Type Description
    System.DateTime

    MinDateTime

    Gets or sets the minimum value of the DateTime column.

    Declaration
    [Cloneable(true)]
    public DateTime MinDateTime { get; set; }
    Property Value
    Type Description
    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 Description
    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 Description
    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 Description
    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.

    Overrides
    GridColumnBase.GetFormattedValue(Object, Object)

    Implements

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