GridCells.Sort

Sort(int, int, int, int, int, bool, bool, bool)

Sorts the datas ascend/decend top to bottom in a range of a Worksheet by specified column index. Sorts the datas ascend/decend left to right in a range of a Worksheet by specified row index.

public void Sort(int startRow, int startColumn, int rows, int columns, int index, bool isAsending, 
    bool isCaseSensitive, bool islefttoright)
ParameterTypeDescription
startRowInt32The row number of the first cell to sort.
startColumnInt32The column number of the first cell to sort.
rowsInt32Number of rows to be imported.
columnsInt32Number of columns to be imported.
indexInt32The column index that specifis the sort column. if the Orientation is top to bottom ,it stand for the column index that specifis the sort column. if the Orientation is from left to right,it stand for the row index that specifis the sort row.
isAsendingBooleanwhether the sorting order is asending .
isCaseSensitiveBooleanwhether the sort is casesensitive .
islefttorightBooleanwhether the sort orientation is from left to right

Examples


 [C#]

 GridWeb1.WebWorksheets[0].Cells.Sort(1,0,25,6,3,true,true,false);

 [VB]

 GridWeb1.WebWorksheets(0).Cells.Sort(1,0,25,6,3,true,true,false)

See Also


Sort(int, int, int, int, int[], SortOrder[], SortOrientation, bool)

Sorts the data of the area.

public void Sort(int startRow, int startColumn, int rows, int columns, int[] indexes, 
    SortOrder[] orders, SortOrientation orientation, bool isCaseSensitive)
ParameterDescription
cellsThe cells contains the data area.
startRowThe start row of the area.
startColumnThe start column of the area.
rowsthe total rows.
columnsThe total columns.
indexesThe sorted column index array
ordersThe sorted order array
orientationthe sorting orientation:from left to right or from top to bottom.
isCaseSensitivewhether case sensitive when comparing string..

See Also