A newer version of this page is available. Switch to the current version.

BaseEdit.EditValueChanged Event

Fires immediately after the edit value has been changed.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

[DXCategory("Events")]
public event EventHandler EditValueChanged

Event Data

The EditValueChanged event's data class is EventArgs.

Remarks

The edited value is specified by the BaseEdit.EditValue property. Each time this property value changes, the EditValueChanged event is raised.

The editor's EditValueChanged event is equivalent to the RepositoryItem.EditValueChanged event available via the BaseEdit.Properties object, i.e. adding/removing an event handler for the current event actually affects the RepositoryItem.EditValueChanged event.

See the RepositoryItem.EditValueChanged topic for more information.

Examples

The following example shows how to respond to changing an editor's value by handling the EditValueChanged event.

private void textEdit1_EditValueChanged(object sender, EventArgs e) {
    TextEdit textEditor = (TextEdit)sender;
    if(Equals(textEditor.EditValue, "000")) {
        //...
    }
}
See Also