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

BaseEdit.DoValidate() Method

Performs editor value validation.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

public virtual bool DoValidate()

Returns

Type Description
Boolean

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

Remarks

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 snippets (auto-collected from DevExpress Examples) contain references to the DoValidate() method.

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