Gets and sets the sort direction of the IQueryable data source object.
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 by the ProductID 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