Skip to main content

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.1.dll

NuGet Package: DevExpress.Reporting.Core


public GroupFieldCollection SortFields { get; }

Property Value

Type Description

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


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 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