Fires when the editor's value is about to be changed.
[DXCategory("Events")] public event ChangingEventHandler EditValueChanging
<DXCategory("Events")> Public Event EditValueChanging As ChangingEventHandler
The EditValueChanging event's data class is ChangingEventArgs. The following properties provide information specific to this event:
|Cancel||Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.|
|NewValue||Gets or sets the value which is about to be assigned to the editor. Setting the NewValue property is not supported if the editor uses masked input (RepositoryItemTextEdit.Mask).|
|OldValue||Gets the editor's value.|
The EditValueChanging event is raised when the edit value (BaseEdit.EditValue) is about to be changed (in code or by an end-user). The potential new value can be identified by the ChangingEventArgs.NewValue parameter. The current edit value is identified by the ChangingEventArgs.OldValue parameter. To cancel the modification, set the Cancel parameter to true.
Do not display modal dialogs or move focus within the EditValueChanging event, as this can lead to the loss of the current value.