Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
The following example shows how to sort data by the ListPrice field in descending order and then on the Product ID field in ascending order. This code example is part of a larger example provided in Walkthrough: Filtering Data in a Web Page Using Declarative Syntax.
<asp:OrderByExpression DataField="ListPrice" Direction="Descending"> <asp:ThenBy DataField="ProductID" Direction="Ascending"/> </asp:OrderByExpression>
Available since 4.0