Spread WinForms 15
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SheetView Class / SortColumns Method / SortColumns(Int32,Boolean,IComparer) Method
Index of the row to use as a key to sorting
Whether to sort in ascending order
IComparer object used to compare the values


In This Topic
SortColumns(Int32,Boolean,IComparer) Method
In This Topic
Sorts all the columns on the sheet by the specified row using the specified comparison.
Syntax
'Declaration
 
Public Overloads Function SortColumns( _
   ByVal keyRow As Integer, _
   ByVal ascending As Boolean, _
   ByVal comparer As IComparer _
) As Boolean
 
'Usage
 
Dim instance As SheetView
Dim keyRow As Integer
Dim ascending As Boolean
Dim comparer As IComparer
Dim value As Boolean
 
value = instance.SortColumns(keyRow, ascending, comparer)

Parameters

keyRow
Index of the row to use as a key to sorting
ascending
Whether to sort in ascending order
comparer
IComparer object used to compare the values
See Also