[]
        
(Showing Draft Content)

C1.Win.FlexGrid.Node.Sort

Sort Method

Sort(SortFlags, int, int)

Sorts this node's child nodes in the specified order.

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

One or more values from the SortFlags enumeration that specify the type of sorting to be applied (e.g. ascending, descending, case-sensitive, etc).

int col1

Start of a range of columns to sort.

int col2

End of a 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(SortFlags)

Sorts this node's child nodes in the specified order.

Declaration
public void Sort(SortFlags order)
Parameters
Type Name Description
SortFlags order

One or more values from the SortFlags enumeration that specify the type of sorting to be applied (e.g. ascending, descending, case-sensitive, etc).

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(IComparer)

Sorts this node's child nodes using a given IComparer object to determine the node order.

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

An object that implements the IComparer interface used to compare Row objects. This can be used to provide custom sorting.

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.