Back to Devexpress

CrossTabGroupFieldBase.SortBySummaryInfo Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-crosstab-dot-crosstabgroupfieldbase-f4c0f097.md

latest2.6 KB
Original Source

CrossTabGroupFieldBase.SortBySummaryInfo Property

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

Namespace : DevExpress.XtraReports.UI.CrossTab

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[SRCategory(ReportStringId.CatData)]
public CrossTabFieldSortBySummaryInfo SortBySummaryInfo { get; }
vb
<SRCategory(ReportStringId.CatData)>
Public ReadOnly Property SortBySummaryInfo As CrossTabFieldSortBySummaryInfo

Property Value

TypeDescription
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

CrossTabGroupFieldBase Class

CrossTabGroupFieldBase Members

DevExpress.XtraReports.UI.CrossTab Namespace