Spread for ASP.NET 8.0 Product Documentation
SortInfo Constructor(Int32,Boolean)
Example 


Index of the column or row on which to sort
Whether the sort order is ascending
Creates a SortInfo object with the order specified and the comparison done using the system default comparer.
Syntax
'Declaration
 
Public Function New( _
   ByVal index As Integer, _
   ByVal ascending As Boolean _
)
'Usage
 
Dim index As Integer
Dim ascending As Boolean
 
Dim instance As New SortInfo(index, ascending)
public SortInfo( 
   int index,
   bool ascending
)

Parameters

index
Index of the column or row on which to sort
ascending
Whether the 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.
FarPoint.Web.Spread.SortInfo(0,true) si0;
FarPoint.Web.Spread.SortInfo(1,true) si1;
FarPoint.Web.Spread.SortInfo(){si0,si1};
Dim si0 As New FarPoint.Web.Spread.SortInfo(0,True)
Dim si1 As New FarPoint.Web.Spread.SortInfo(1,True)
Dim si() As FarPoint.Web.Spread.SortInfo=New FarPoint.Web.Spread.SortInfo(){si0,si1}
Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

SortInfo Class
SortInfo Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.