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

Declaration

[Favorite(true)]
[SRCategory(ReportStringId.CatData)]
public GroupFieldCollection SortFields { get; }
<Favorite(True)>
<SRCategory(ReportStringId.CatData)>
Public ReadOnly Property SortFields As GroupFieldCollection

Property Value

Type Description
GroupFieldCollection

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

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