ActiveReports 9 > ActiveReports User Guide > How To > Page Report/RDL Report How To > Allow Users to Sort Data in the Viewer |
In a page report or a RDL report, you can allow the end-user to sort columns of data in the Viewer by setting interactive sorting on a TextBox control within a data region. Follow the steps below to set interactive sorting in a TextBox control.
These steps assume that you have already added a Page Report (xml-based)/RDL Report template to your project and connected it to a data source and a data set. See Connect to a Data Source and Add a Dataset for further information.
Note: Under Data region or group to sort, and Evaluate sort expression in this scope, you can optionally choose a different a scope from the Choose data region or grouping drop down list. |
When you preview the report, you can see a sort icon next to the TextBox control, the User Rating header in this case.
You can click the icon to sort in descending order. The icon changes to an up arrow that you can click to sort ascending.