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

Adds the specified filter values to the collection asynchronously.

Namespace: DevExpress.Xpf.PivotGrid

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

NuGet Package: DevExpress.Wpf.PivotGrid

#Declaration

public bool SetFilterValuesAsync(
    object[] values,
    FieldFilterType filterType,
    bool showBlanks,
    AsyncCompletedHandler handler
)

#Parameters

Name Type Description
values Object[]

An object that represents a collection of field filter values.

filterType FieldFilterType

A FieldFilterType enumeration member that specifies the filter type.

showBlanks Boolean

True, to show blank values; otherwise, false.

handler AsyncCompletedHandler

A AsyncCompletedHandler delegate referencing a method that should be executed after the operation is completed.

#Returns

Type Description
Boolean

True, if the field filter was applied; otherwise, false.

#Remarks

The SetFilterValuesAsync method returns false if the field filter is already set to the parameter’s values or if you cancel the filtering when handling the PivotGridControl.FieldFilterChanging event.

To add filter values to the collection in a standard mode, use the PivotGridField.SetFilterValues method.

See Also