IdeaBlade DevForce 2010 Help Reference
ThenBy(String,ListSortDirection) Method
See Also  Example Send Feedback
IdeaBlade.Linq Assembly > IdeaBlade.Linq Namespace > PropertySortSelector Class > ThenBy Method : ThenBy(String,ListSortDirection) Method



propertyName
sortDirection
Returns a new PropertySortSelector with the additional sort criteria to this propertySortSelector added.

Syntax

Visual Basic (Declaration) 
Public Overloads Function ThenBy( _
   ByVal propertyName As String, _
   Optional ByVal sortDirection As ListSortDirection _
) As PropertySortSelector
Visual Basic (Usage)Copy Code
Dim instance As PropertySortSelector
Dim propertyName As String
Dim sortDirection As ListSortDirection
Dim value As PropertySortSelector
 
value = instance.ThenBy(propertyName, sortDirection)

Parameters

propertyName
sortDirection

Example

C#Copy Code
public void ThenBySample1() {
  // Sample showing sort by Country and CompanyName properties of Customer.
  var mgr = new DomainModelEntityManager();
  var selector = new PropertySortSelector(typeof(Customer), "Country").ThenBy("CompanyName");
  var results = mgr.Customers.OrderBySelector(selector).ToList();
}

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.