Spread ASP.NET 6.0 Product Documentation
SortInfo Constructor(Int32,Boolean)
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SortInfo Class > SortInfo Constructor : SortInfo Constructor(Int32,Boolean)


index
Index of the column or row on which to sort
ascending
Whether sort order is ascending

Glossary Item Box

Creates a SortInfo object with the order specified and the comparison done using the system default comparer.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal index As Integer, _
   ByVal ascending As Boolean _
)
Visual Basic (Usage)Copy Code
Dim index As Integer
Dim ascending As Boolean
 
Dim instance As New SortInfo(index, ascending)
C# 
public SortInfo( 
   int index,
   bool ascending
)

Parameters

index
Index of the column or row on which to sort
ascending
Whether sort order is ascending

Example

This example shows how to use the Sort method with theSortInfo object and does a primary sort on column 0 and asecondary sort on column 1.
C#Copy Code
FarPoint.Web.Spread.SortInfo(0,True)si0;
FarPoint.Web.Spread.SortInfo(1,True)si1;
FarPoint.Web.Spread.SortInfo(){si0,si1};
Visual BasicCopy Code
Dimsi0AsNewFarPoint.Web.Spread.SortInfo(0,True)
Dimsi1AsNewFarPoint.Web.Spread.SortInfo(1,True)
Dimsi()AsFarPoint.Web.Spread.SortInfo=NewFarPoint.Web.Spread.SortInfo(){si0,si1}

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

© 2002-2012 GrapeCity, Inc. All Rights Reserved.