Back to Devexpress

CalendarControlBase.ParseEditValue Event

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-calendarcontrolbase-4e8f5b0c.md

latest2.9 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Events")]
public event ConvertEditValueEventHandler ParseEditValue
vb
<DXCategory("Events")>
Public Event ParseEditValue As ConvertEditValueEventHandler

Event Data

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

PropertyDescription
HandledGets or sets a value specifying whether default edit value conversion/formatting is required.
ValueGets 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

EditValue

FormatEditValue

CalendarControlBase Class

CalendarControlBase Members

DevExpress.XtraEditors.Controls Namespace