Spread ASP.NET 16
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SortInfo Class / SortInfo Constructor / SortInfo Constructor(Int32,Boolean,IComparer)
Index of the column or row on which to sort
Whether the sort order is ascending
IComparer object for method of comparison
Example


In This Topic
    SortInfo Constructor(Int32,Boolean,IComparer)
    In This Topic
    Creates a SortInfo object with the order specified and the comparison done according to the specified comparer.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal index As Integer, _
       ByVal ascending As Boolean, _
       ByVal comparer As IComparer _
    )
    'Usage
     
    Dim index As Integer
    Dim ascending As Boolean
    Dim comparer As IComparer
     
    Dim instance As New SortInfo(index, ascending, comparer)
    public SortInfo( 
       int index,
       bool ascending,
       IComparer comparer
    )

    Parameters

    index
    Index of the column or row on which to sort
    ascending
    Whether the sort order is ascending
    comparer
    IComparer object for method of comparison
    Example
    This example sorts the columns using the sort array.
    See Also