Skip to main content
A newer version of this page is available. .

DateEdit

  • 2 minutes to read

Overview

The DateEdit control is a drop-down editor that allows end users to select DateTime values. The DateEdit control supports multiple operation modes.

date-edit

The DateEdit control offers the following features.

Standalone DateEdit

To add a standalone DateEdit to a Window, drag it from the Toolbox.

The following sample demonstrates how to create a DateEdit using XAML markup.

<dxe:DateEdit>
    <dxe:DateEdit.StyleSettings>
        <dxe:DateEditPickerStyleSettings/>
    </dxe:DateEdit.StyleSettings>
</dxe:DateEdit>

In-place DateEdit

To embed a DateEdit into a container control, use the DateEditSettings class.

The following sample demonstrates how to embed a DateEdit into a GridControl column.

<dxg:GridControl Name="grid">
    <dxg:GridControl.Columns>
        <dxg:GridColumn FieldName="Birthday">
        <dxg:GridColumn.EditSettings>
            <dxe:DateEditSettings/>
        </dxg:GridColumn.EditSettings>
    </dxg:GridColumn>
</dxg:GridControl.Columns>
</dxg:GridControl>
See Also