DateEdit.DefaultDateTime Property
Gets or sets the value displayed in the empty editor when a user starts to enter data. This is a dependency property.
Namespace: DevExpress.Xpf.Editors
Assembly: DevExpress.Xpf.Core.v24.1.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
Property Value
Type | Default | Description |
---|---|---|
Nullable<DateTime> | DateTime.Today | The value displayed in the empty editor when a user starts to enter data. |
Remarks
The DateEdit uses the DefaultDateTime
property if the editor’s value is empty and a user interacts with the editor in the following ways:
A user starts to type a value: the editor uses the default date to suggest an auto-complete option.
A user opens the drop-down calendar: the editor auto-selects the default date.
<dxe:DateEdit DefaultDateTime="#2007-07-07#"/>
The DefaultDateTime
property does not affect the value returned by the empty editor. Use the BaseEdit.NullValue property to specify the editor value when its value is null
.