ComponentOne FlexGrid for WinForms
Sort(Int32,SortFlags,Int32,Int32) Method

C1.Win.C1FlexGrid Namespace > GridTree Class > Sort Method : Sort(Int32,SortFlags,Int32,Int32) Method
Level of the nodes to sort.
SortFlags value that controls sort direction and options.
Start of the range of columns to sort.
End of the range of columns to sort.
Sorts all nodes at the given level.
Syntax
'Declaration
 
Public Overloads Sub Sort( _
   ByVal level As Integer, _
   ByVal order As SortFlags, _
   ByVal col1 As Integer, _
   ByVal col2 As Integer _
) 
public void Sort( 
   int level,
   SortFlags order,
   int col1,
   int col2
)

Parameters

level
Level of the nodes to sort.
order
SortFlags value that controls sort direction and options.
col1
Start of the range of columns to sort.
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,Int32) method instead.

See Also

Reference

GridTree Class
GridTree Members
Overload List