RepositoryItem.EditValueChanging Event

Fires when the editor's value is about to be changed.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DXCategory("Events")]
public event ChangingEventHandler EditValueChanging
<DXCategory("Events")>
Public Event EditValueChanging As ChangingEventHandler

Event Data

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

Property Description
Cancel Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
IsBoundUpdatingEditValue For internal use.
IsTextChanging For internal use.
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.

Remarks

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.

NOTE

Do not display modal dialogs or move focus within the EditValueChanging event, as this can lead to the loss of the current value.

See Also