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

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