Sorting
Hello
I have probably a very basic questions, we habe Fast Reports for our contracts. At the moment they are sorted by Contract number and we want to change that to sorting by name.
Where in the fast report do I find the settings for sorting to change that? I already read something about a sort setting which I was not able to find in the properties. But I perhaps was at the wrong place as I am new to the reporter. Is there a basic get started documentation where I can learn the basics?
Thanks and best regards.
Patrick
This discussion has been closed.
Comments
Hello!
In FastReport .NET, you can specify the sort order for rows in one of three places (depending on how the data is received):
On the DataBand in the designer: double-click the DataBand -> open the Sort tab -> add a sort field (for example, [Contracts.CustomerName], Ascending).
If contracts are grouped, double-click GroupHeader and select the sort order for the group.
In the data source’s SQL query: add ORDER BY CustomerName directly to the Data Master’s query this is the quickest method for large tables.
Examples:
https://www.fast-report.com/public_download/docs/FRNet/online/en/UserManual/en-US/DataBand/SimpleListReport/DataSort.html
https://www.fast-report.com/blogs/sorting-report-data