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.ClearError() Method

In This Article

Clears error notification and resets the editor’s value.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public void ClearError()

#Remarks

The validation takes place when a value specified by an end-user (e.g. a user types within a text editor and presses the ENTER key) is to be assigned to the editor’s BaseEdit.EditValue property. If the new value is invalid, it isn’t accepted by the editor and not assigned to the BaseEdit.EditValue property. In this instance, an end-user can correct this value or reset it to the previous value, by pressing the ESC key. To do this in code, use the ClearError method.

See Also