Skip to main content

BaseEdit.DoValidate() Method

Performs editor value validation.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation


public virtual bool DoValidate()


Type Description

true if the editor value has been validated; otherwise, false.


The DoValidate method is called automatically by the editor itself or its container control each time the editor must be validated. This occurs when the end-user accepts the edited value (the editor is about to lose focus, for instance).

The DoValidate method checks whether the edited value was modified by the end-user. If so, the modified value is parsed and validated. The RepositoryItem.ParseEditValue and RepositoryItem.Validating events are raised for this purpose. For more information on parsing and validating edit values, see the Parsing Edit Values and Validation topics respectively.

Usually, you will have no need to use this method in your applications.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DoValidate() method.


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