Occurs before the editor's value is changed.
public event EditValueChangingEventHandler EditValueChanging
Public Event EditValueChanging As EditValueChangingEventHandler
The EditValueChanging event handler receives an argument of the EditValueChangingEventArgs type. The following properties provide information specific to this event.
|IsCancel||Gets or sets a value indicating whether the event should be canceled.|
|NewValue||Gets a new value to be assigned to the editor.|
|OldValue||Gets or sets the current edit value, which should be replaced by the new value.|
The EditValueChanging event is raised when the editor's value is about to be changed (a user types or deletes a character, presses a spin button, etc.). The potential new value is returned by the event parameter's NewValue property. The current value is returned by the OldValue property. To cancel posting a NewValue to BaseEdit.EditValue, set the Handled and event parameter's IsCancel properties to true.
After the editor's value has been changed, the BaseEdit.EditValueChanged event is fired.