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

DetailBand.SortFields Property

Gets the collection of data fields used to sort the data in the report’s data source.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

[SRCategory(ReportStringId.CatData)]
public GroupFieldCollection SortFields { get; }

#Property Value

Type Description
GroupFieldCollection

A GroupFieldCollection object which represents the collection of data fields to sort by.

#Remarks

Use the SortFields property to specify the data fields which the data in the report’s data source will be sorted by when creating the report’s document, and the order of sorting. The report’s data source can be accessed via its XtraReportBase.DataSource property.

Note

Note that since this property is declared for the DetailBand class, you can specify different sort data fields and sort orders for master and detail reports when creating a master-detail report using the DetailReportBand objects.

See Also