Spread Windows Forms 7.0 Product Documentation
SortRows(Int32,Boolean,Boolean,IComparer,Boolean,Boolean) Method
See Also  Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class > SortRows Method : SortRows(Int32,Boolean,Boolean,IComparer,Boolean,Boolean) Method


keyColumn
Column index whose values are compared during sorting
ascending
Whether to sort in ascending order
showIndicator
Whether the sort indicator should be displayed
comparer
IComparer object used to compare the values
sortFrozenRows
Whether frozen rows are sorted
sortTrailingFrozenRows
Whether trailing frozen rows are sorted

Glossary Item Box

Sorts all the rows on this sheet by the specified column using the specified comparison.

Syntax

Visual Basic (Declaration) 
Public Overloads Function SortRows( _
   ByVal keyColumn As Integer, _
   ByVal ascending As Boolean, _
   ByVal showIndicator As Boolean, _
   ByVal comparer As IComparer, _
   ByVal sortFrozenRows As Boolean, _
   ByVal sortTrailingFrozenRows As Boolean _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim keyColumn As Integer
Dim ascending As Boolean
Dim showIndicator As Boolean
Dim comparer As IComparer
Dim sortFrozenRows As Boolean
Dim sortTrailingFrozenRows As Boolean
Dim value As Boolean
 
value = instance.SortRows(keyColumn, ascending, showIndicator, comparer, sortFrozenRows, sortTrailingFrozenRows)
C# 
public bool SortRows( 
   int keyColumn,
   bool ascending,
   bool showIndicator,
   IComparer comparer,
   bool sortFrozenRows,
   bool sortTrailingFrozenRows
)

Parameters

keyColumn
Column index whose values are compared during sorting
ascending
Whether to sort in ascending order
showIndicator
Whether the sort indicator should be displayed
comparer
IComparer object used to compare the values
sortFrozenRows
Whether frozen rows are sorted
sortTrailingFrozenRows
Whether trailing frozen rows are sorted

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.