Skip to main content

CalcEdit.DoValidate(PopupCloseMode) Method

Validates the editor.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v25.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public override bool DoValidate(
    PopupCloseMode closeMode
)

Parameters

Name Type Description
closeMode PopupCloseMode

Specifies how the drop-down calculator was closed.

Returns

Type Description
Boolean

true if the edit value is valid; otherwise, false.

Remarks

The DoValidate method is used internally. It closes the editor’s drop-down calculator and validates the edit value.

// Validate the editor after the drop-down calculator closes.
bool isValid = calcEdit1.DoValidate(DevExpress.XtraEditors.PopupCloseMode.Normal);
if (!isValid) {
    // Handle an invalid value.
}

Refer to the following help topic for additional information: BaseEdit.DoValidate.

See Also