Skip to main content
A newer version of this page is available. .

RepositoryItem.EditValueChanged Event

Fires when the editor’s BaseEdit.EditValue property changes.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.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

Editors raise the EditValueChanged event during the editing process, not after it is finished. For instance, if an editor has a text box, the EditValueChanged event will fire each time a user types a new character. It is possible to delay the EditValueChanged event: set the RepositoryItem.EditValueChangedFiringMode property to Buffered and change the RepositoryItem.EditValueChangedDelay \ RepositoryItem.EditValueChangedFiringDelay property to specify the delay.

The EditValueChanged event only notifies you about value changes and cannot cancel them. If you need to limit the user input, handle the RepositoryItem.EditValueChanging event instead.

The RepositoryItem.EditValueChangedFiringMode property specifies how the EditValueChanged event fires - immediately, or after an end-user has stopped editing. See this topic for more details.

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