Spread ASP.NET 16
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SheetView Class / SortColumns Method / SortColumns(Int32,Boolean) Method
Row whose values are compared during sorting
Whether the sort is ascending
Example


In This Topic
    SortColumns(Int32,Boolean) Method
    In This Topic
    Sorts all the columns in the sheet according to the specified parameters.
    Syntax
    'Declaration
     
    Public Overloads Function SortColumns( _
       ByVal keyRow As Integer, _
       ByVal ascending As Boolean _
    ) As Boolean
    'Usage
     
    Dim instance As SheetView
    Dim keyRow As Integer
    Dim ascending As Boolean
    Dim value As Boolean
     
    value = instance.SortColumns(keyRow, ascending)
    public bool SortColumns( 
       int keyRow,
       bool ascending
    )

    Parameters

    keyRow
    Row whose values are compared during sorting
    ascending
    Whether the sort is ascending

    Return Value

    true if successful; otherwise false
    Remarks
    This is the simplest of the methods to sort columns. You need only specify the row to use as a key for sorting and whether the sort is ascending or descending. All the columns in the sheet are sorted.
    Example
    This example illustrates the use of this member by sorting the columns with the specified parameters.
    See Also