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

PivotGridField.CollapseValue(Object) Method

Collapses the column/row that contains the specified value.

Namespace: DevExpress.Xpf.PivotGrid

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

NuGet Package: DevExpress.Wpf.PivotGrid

#Declaration

public void CollapseValue(
    object value
)

#Parameters

Name Type Description
value Object

An object specifying the value in the grouping column/row which should be collapsed.

#Remarks

When the current field is placed within the Column Header Area the CollapseValue method collapses the grouping column which corresponds to the current field that contains the specified value.

When the field is placed within the Row Header Area the CollapseValue method collapses the grouping row that contains the specified value.

To collapse all grouping rows/columns which correspond to the current field use the PivotGridField.CollapseAll method.

Grouping rows/columns corresponding to a field can be collapsed and expanded by end-users if the field’s PivotGridField.AllowExpand property is set to True.

See Also