Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public ref class ThenBy
public class ThenBy
type ThenBy = class
Public Class ThenBy
The following example shows how to sort data by the ListPrice field in descending order and then on the ProductID field in ascending order using the ThenBy type. 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>
After a sort operation is performed by using the OrderByExpression expression in the QueryExtender control, subsequent sort operations can be performed by using the ThenBy class on a different data field.
Initializes a new instance of the ThenBy class.
Gets or sets the ordering direction of the IQueryable data source object.
Determines whether the specified object is equal to the current object.(Inherited from Object)
Serves as the default hash function.(Inherited from Object)
Gets the Type of the current instance.(Inherited from Object)
Creates a shallow copy of the current Object.(Inherited from Object)
Returns a string that represents the current object.(Inherited from Object)