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

CrossTabGroupFieldBase.SortBySummaryInfo Property

Allows you to sort field values based on summary values in rows/columns.

Namespace: DevExpress.XtraReports.UI.CrossTab

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

[SRCategory(ReportStringId.CatData)]
public CrossTabFieldSortBySummaryInfo SortBySummaryInfo { get; }

#Property Value

Type Description
CrossTabFieldSortBySummaryInfo

Settings that allows you to sort field values based on summary values.

#Remarks

The Cross Tab displays row and column field values in ascending order.

You can use the SortBySummaryInfo property to sort row/column field values by grand totals values calculated against the specified field.

  1. Select a cell you want to sort and expand the SortBySummaryInfo property in the Properties window.
  2. Set the CrossTabFieldSortBySummaryInfo.FieldName property to the name of an assigned data source’s field. You can also define a field that is not currently displayed in the Cross Tab.
  3. Use the CrossTabFieldSortBySummaryInfo.SummaryType property to specify which summary function to calculate. The summary type can differ from the summary type currently used in the Cross Tab.
  4. Use the SortOrder property to define the sort order.

See Also