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.IsFieldValueCollapsed(Boolean, Object[]) Method

Indicates whether the specified field value is collapsed.

Namespace: DevExpress.Xpf.PivotGrid

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

NuGet Package: DevExpress.Wpf.PivotGrid

#Declaration

public bool IsFieldValueCollapsed(
    bool isColumn,
    params object[] values
)

#Parameters

Name Type Description
isColumn Boolean

true if the field value corresponds to a column field; false if the field value corresponds to a row field.

values Object[]

An array of column or row field values that identify the field value.

#Returns

Type Description
Boolean

true if the specified field value is collapsed; otherwise, false.

#Remarks

Consider the following PivotGridControl:

pivotgrid_collapsevalue_2

The following table illustrates how to use the IsFieldValueCollapsed method to obtain whether particular field values are collapsed.

Field Value Method Usage Return Value
1994, Aniseed Syrup pivotGrid.IsFieldValueCollapsed(true, "Aniseed Syrup", 1994); false
1995, Aniseed Syrup pivotGrid.IsFieldValueCollapsed(true, "Aniseed Syrup", 1995); true
See Also