Skip to main content

DateEdit.MinValue Property

Gets or sets the editor's minimum value. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

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

#Declaration

public DateTime? MinValue { get; set; }

#Property Value

Type Description
Nullable<DateTime>

A DateTime structure which represents the minimum allowed date.

#Remarks

An end-user cannot select a value from the drop-down calendar if it is less than the minimum value. An end-user can also change the date by typing it in the text box. In this instance, if a new value preceeds the minimum allowed value, an error icon is displayed, indicating that the specified value is not valid.

The maximum allowed date is specified using the DateEdit.MaxValue property. To specify the editor's current value, use the DateEdit.DateTime property.

#Examples

The following example shows how to set the date editor's current, maximum and minimum values.

<dxe:DateEdit DateTime="11/12/2009" MaxValue="12/31/2010" MinValue="01/01/2008"/>
See Also