RepositoryItemDateEdit.DateOnError Property

Obsolete. Specifies how a DateEdit responds to an attempt to enter an invalid date value.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[Browsable(false)]
[Obsolete("This property is obsolete.")]
public virtual DateOnError DateOnError { get; set; }
<Browsable(False)>
<Obsolete("This property is obsolete.")>
Public Overridable Property DateOnError As DateOnError

Property Value

Type Description
DateOnError

A DateOnError value specifying how to respond to an invalid date value.

Remarks

This property is obsolete.

When an editor's mask type is set to MaskType.DateTime or MaskType.DateTimeAdvancingCaret, a date editor prevents an end-user from entering an invalid date-time value. Only a valid date-time value that matches the pattern specified by the RepositoryItemDateEdit.EditMask property can be entered.

When an editor's mask type is set to MaskType.None, the editor allows an end-user to enter any text (not only strings corresponding to date/time values). A date editor will make an attempt to convert the entered text to a date/time value. If the text cannot be converted the editor's edit value will be set to null. To implement a custom conversion algorithm handle the RepositoryItem.ParseEditValue event.

See Also