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

PivotGridControl.ValidateEditor() Method

Validates the active editor.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v24.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