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

How to Implement the Sorting by Summary Feature

This example demonstrates how to sort the values of the ‘Car Name’ row field by summary values calculated for the ‘Payment Amount’ data field. To do this, set the SortBySummaryInfo.Field property of the ‘Car Name’ row field to reference the ‘Payment Amount’ field. As a result, the values will be arranged in the order specified by the grand total summary values. To specify the summary function which will be used to calculate summary values, set the SortBySummaryInfo.SummaryType property of the ‘Car Name’ row field.

The following images show the ExpressPivotGrid control before and after the field values are sorted by the summary values.

Before:

After:

PivotGridCarName.SortBySummaryInfo.Field := PivotGridPaymentAmount;