BaseEdit.DoValidate() Method
Performs editor value validation.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v22.2.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
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.