Skip to main content

PivotGridControl.ValidateEditor() Method

Validates the active editor.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v23.2.dll

NuGet Package: DevExpress.Win.PivotGrid

Declaration

public bool ValidateEditor()

Returns

Type Description
Boolean

true if the active editor’s value is valid; otherwise, false.

Remarks

Use the ValidateEditor method, to force active editor validation.

First, the ValidateEditor method performs automatic editor validation. It calls the active editor’s BaseEdit.DoValidate method, which determines whether the value entered can be accepted by the editor. Then, the ValidateEditor method raises the PivotGridControl.ValidatingEditor event, which enables you to perform manual validation.

If the editor validation fails, the PivotGridControl.ValidatingEditor event is raised. Handle this event to specify how the PivotGrid control should respond to entering an incorrect value.

See Also