New to Telerik Reporting? Start a free 30-day trial
Adding Sortings to Report
-
Click the Report selector button located in the upper left-hand of the Report Designer
-
Click the Sorting ellipsis.
-
For each sort expression, follow these steps:
- Click New.
- Type or select an expression by which to sort the data.
- From the Direction column drop-down list, choose the sort direction for each expression. ASC sorts the expression in ascending order. DESC sorts the expression in descending order.
-
Click OK.
Adding sorting to Report Group using Report Designer
-
Open the Group Explorer
-
Click the Report selector button located in the upper left corner of the Report Designer. This makes the report active in the Group Explorer
-
Choose a Report Group and click its Sorting ellipsis.
-
For each sort expression, follow these steps:
- Click New.
- Type or select an expression by which to sort the data.
- From the Direction column drop-down list, choose the sort direction for each expression. ASC sorts the expression in ascending order. DESC sorts the expression in descending order.
-
Click OK.
Adding sorting to Report programatically
C#
Telerik.Reporting.Sorting sorting1 = new Telerik.Reporting.Sorting();
sorting1.Expression = "=Fields.ProductID";
sorting1.Direction = Telerik.Reporting.SortDirection.Asc;
report1.Sortings.Add(sorting1);