[]
        
(Showing Draft Content)

FarPoint.Win.Spread.SheetView.SortColumns

SortColumns Method

SortColumns(int, bool)

Sorts all the columns on the sheet by the specified row.

Declaration
public bool SortColumns(int keyRow, bool ascending)
Public Function SortColumns(keyRow As Integer, ascending As Boolean) As Boolean
Parameters
Type Name Description
int keyRow

Index of the row to use as a key to sorting

bool ascending

Whether to sort in ascending order

Returns
Type Description
bool

SortColumns(int, bool, IComparer)

Sorts all the columns on the sheet by the specified row using the specified comparison.

Declaration
public bool SortColumns(int keyRow, bool ascending, IComparer comparer)
Public Function SortColumns(keyRow As Integer, ascending As Boolean, comparer As IComparer) As Boolean
Parameters
Type Name Description
int keyRow

Index of the row to use as a key to sorting

bool ascending

Whether to sort in ascending order

IComparer comparer

IComparer object used to compare the values

Returns
Type Description
bool

SortColumns(int, int, SortInfo[])

Sorts a specified range of columns on the sheet by the specified sort information.

Declaration
public bool SortColumns(int column, int columnCount, SortInfo[] sortInfo)
Public Function SortColumns(column As Integer, columnCount As Integer, sortInfo As SortInfo()) As Boolean
Parameters
Type Name Description
int column

Index of first column to start sorting

int columnCount

Number of columns in range to sort

SortInfo[] sortInfo

Array of SortInfo objects with the row indexes and sort order

Returns
Type Description
bool