Skip to main content
A newer version of this page is available. .

PivotGridFieldSortCondition Class

Represents a sort condition used to identify the column/row by whose values the other field values will be sorted.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.PivotGrid.v17.2.Core.dll

Declaration

public class PivotGridFieldSortCondition

The following members accept/return PivotGridFieldSortCondition objects:

Remarks

To identify the column/row by whose values their values will be sorted, pivot grid fields hold the PivotGridFieldSortBySummaryInfo.Conditions collection, which contains the PivotGridFieldSortCondition objects (the PivotGridFieldSortBySummaryInfo object is accessed via the PivotGridFieldBase.SortBySummaryInfo property).

A sort condition represents a field value. The PivotGridFieldSortBySummaryInfo.Conditions collection contains one sort condition for each field in the current Header Area. Together, these conditions identify the required column/row. For instance, the highlighted column on the image below is identified by three sort conditions.

pivotgrid_sortconditions

The field value which the sort condition represents is specified by the PivotGridFieldSortCondition.Value property. The field to which the value belongs is specified by the PivotGridFieldSortCondition.Field property.

If the pivot grid is bound to an OLAP data source, the field value is identified by the corresponding OLAP member’s unique name (PivotGridFieldSortCondition.OLAPUniqueMemberName). In this instance, the PivotGridFieldSortCondition.Value property is set to null.

The following code snippets (auto-collected from DevExpress Examples) contain references to the PivotGridFieldSortCondition class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

Object
PivotGridFieldSortCondition
See Also