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.SortBySummaryDefaultOrder Property

Gets or sets the sort order applied to a field when sorting by summaries is enabled for it.

Namespace: DevExpress.Xpf.PivotGrid

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

NuGet Package: DevExpress.Wpf.PivotGrid

#Declaration

public FieldSortBySummaryOrder SortBySummaryDefaultOrder { get; set; }

#Property Value

Type Description
FieldSortBySummaryOrder

A FieldSortBySummaryOrder enumeration member that specifies the sort order applied to a field when sorting by summaries is enabled for it.

Available values:

Name Description
Ascending

Field values are sorted in ascending order.

Descending

Field values are sorted in descending order.

Default

The sort order is not changed.

#Remarks

The field sort order is specified by the PivotGridField.SortOrder property. If the SortBySummaryDefaultOrder property is set to FieldSortBySummaryOrder.Default, sorting by summaries does not change the PivotGridField.SortOrder property value. Otherwise, if the SortBySummaryDefaultOrder property is set to either FieldSortBySummaryOrder.Ascending or FieldSortBySummaryOrder.Descending, the PivotGridField.SortOrder property will be set to FieldSortOrder.Ascending or FieldSortOrder.Descending (respectively) when sorting by summaries is enabled.

To learn more, see Sorting by Summary.

See Also