Skip to main content

CalendarControlBase.ParseEditValue Event

Allows you to parse a new value that is about to be assigned to the CalendarControlBase.EditValue property.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Events")]
public event ConvertEditValueEventHandler ParseEditValue

Event Data

The ParseEditValue event's data class is ConvertEditValueEventArgs. The following properties provide information specific to this event:

Property Description
Handled Gets or sets a value specifying whether default edit value conversion/formatting is required.
Value Gets or sets either the edit or the display value of an editor.

Remarks

The ParseEditValue event fires each time a new value is about to be assigned to the CalendarControlBase.EditValue property, and allows you to parse the value, if necessary.

The event’s ConvertEditValueEventArgs.Value parameter allows you to obtain the current edit value. Set this parameter to the value that should actually be stored in the CalendarControlBase.EditValue property. You must set the ConvertEditValueEventArgs.Handled property value to true to prevent the default conversion from being invoked after your ParseEditValue event handler is complete.

See Also