Back to Devexpress

DateEditSettings Class

wpf-devexpress-dot-xpf-dot-editors-dot-settings-7bbe3836.md

latest5.6 KB
Original Source

DateEditSettings Class

Contains settings specific to the DateEdit editor.

Namespace : DevExpress.Xpf.Editors.Settings

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public class DateEditSettings :
    PopupBaseEditSettings
vb
Public Class DateEditSettings
    Inherits PopupBaseEditSettings

Remarks

DevExpress container controls (GridControl, TreeListControl, and so on) use DevExpress WPF Editors to edit data they display. Each editor has a helper class (a BaseEditSettings descendant) that is responsible for the editor’s functionality. When the same editor is used in multiple locations, a container control uses this helper class to paint its cells. The actual editors are only created when end users start to edit, and are automatically deleted when editing is completed.

Refer to the Assign Editors to Cells topic for more information.

For detailed information on date editors, see DateEdit.

Example

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

xaml
<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>

The following code snippets (auto-collected from DevExpress Examples) contain references to the DateEditSettings class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-data-grid-display-datetime-value-in-separate-date-and-time-columns/CS/DateAndTimeColumns_Unbound/MainWindow.xaml#L20

xml
<dxg:GridColumn.EditSettings>
    <dxe:DateEditSettings DisplayFormat="T">
        <dxe:DateEditSettings.StyleSettings>

wpf-data-grid-bind-to-pagedasyncsource/CS/PagedAsyncSourceSample/MainWindow.xaml#L20

xml
<dxg:GridColumn.EditSettings>
    <dxe:DateEditSettings Mask="H:mm MM/dd/yy" MaskUseAsDisplayFormat="True"/>
</dxg:GridColumn.EditSettings>

wpf-data-grid-bind-to-infiniteasyncsource/CS/InfiniteAsyncSourceSample/MainWindow.xaml#L24

xml
<dxg:GridColumn.EditSettings>
    <dxe:DateEditSettings Mask="H:mm MM/dd/yy" MaskUseAsDisplayFormat="True"/>
</dxg:GridColumn.EditSettings>

wpf-data-grid-use-skip-tokens-to-optimize-paging-EF/CS/MainWindow.xaml#L20

xml
<dxg:GridColumn.EditSettings>
    <dxe:DateEditSettings Mask="MM/dd/yy" MaskUseAsDisplayFormat="True"/>
</dxg:GridColumn.EditSettings>

how-to-bind-to-grpc/CS/InfiniteAsyncSource.GRPC/MainWindow.xaml#L40

xml
<dxg:GridColumn.EditSettings>
  <dxe:DateEditSettings Mask="H:mm MM/dd/yy" MaskUseAsDisplayFormat="True"/>
</dxg:GridColumn.EditSettings>

Inheritance

Show 11 items

Object DispatcherObject DependencyObject ContentElement FrameworkContentElement DXFrameworkContentElement BaseEditSettings TextEditSettings ButtonEditSettings PopupBaseEditSettings DateEditSettings

See Also

DateEditSettings Members

DevExpress.Xpf.Editors.Settings Namespace