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

Validates the editor.

Namespace: DevExpress.Xpf.Editors

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public virtual bool DoValidate()

#Returns

Type Description
Boolean

true if the editor’s value has been validated; false if the editor’s value is invalid.

#Remarks

The DoValidate method is automatically called by the editor or its container control, each time the editor’s value should be validated. This occurs when an end-user accepts the edit value (for example, when the editor is about to lose focus).

Use the DoValidate method to manually force the validation. If the editor’s BaseEdit.CausesValidation property is set to true, the editor fires the BaseEdit.Validate event, allowing you to manually validate its value.

To learn more, see Input Validation.

See Also