Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BaseEdit.EditValueChanged Event

Fires immediately after the edit value has been changed.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#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.

#Example

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")) {
        //...
    }
}

The following code snippets (auto-collected from DevExpress Examples) contain references to the EditValueChanged event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also