Back to Devexpress

PivotGridControl.ValidateEditor() Method

windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotgridcontrol-cc87373b.md

latest2.2 KB
Original Source

PivotGridControl.ValidateEditor() Method

Validates the active editor.

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.XtraPivotGrid.v25.2.dll

NuGet Package : DevExpress.Win.PivotGrid

Declaration

csharp
public bool ValidateEditor()
vb
Public Function ValidateEditor As Boolean

Returns

TypeDescription
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

ValidatingEditor

InvalidValueException

Cell Editors Overview

PivotGridControl Class

PivotGridControl Members

DevExpress.XtraPivotGrid Namespace