Skip to main content
A newer version of this page is available. .

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.v20.2.dll

NuGet Packages: DevExpress.Reporting.Core, DevExpress.WindowsDesktop.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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the SortFields property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also