[]
        
(Showing Draft Content)

C1.Win.C1FlexGrid.GridTree.Sort

Sort Method

Sort(int, SortFlags, int, int)

Sorts all nodes at the given level.

Declaration
public void Sort(int level, SortFlags order, int col1, int col2)
Parameters
Type Name Description
int level

Level of the nodes to sort.

SortFlags order

SortFlags value that controls sort direction and options.

int col1

Start of the range of columns to sort.

int col2

End of the range of columns to sort.

Remarks

The grid recognizes two types of row: regular rows which contain data, and node rows which are used to group data. This method only sorts the row nodes; it does not reorder the data rows within each node.

To sort the data rows, use the grid's Sort(SortFlags, int) method instead.

Sort(int, IComparer)

Sorts all nodes at the given level using the specified comparer.

Declaration
public void Sort(int level, IComparer comparer)
Parameters
Type Name Description
int level

Level of the nodes to sort.

IComparer comparer

An IComparer object that compares Node objects.