FlexGrid for WinForms
Sort(SortFlags,CellRange) Method



SortFlags value that specifies the sort direction and options.
CellRange object that specifies the range of cells to sort.
Sorts a range of cells in the grid.
Syntax
'Declaration
 
Public Overloads Overridable Sub Sort( _
   ByVal order As SortFlags, _
   ByVal rg As CellRange _
) 
'Usage
 
Dim instance As C1FlexGridBase
Dim order As SortFlags
Dim rg As CellRange
 
instance.Sort(order, rg)
public virtual void Sort( 
   SortFlags order,
   CellRange rg
)
public:
virtual void Sort( 
   SortFlags order,
   CellRange rg
) 

Parameters

order
SortFlags value that specifies the sort direction and options.
rg
CellRange object that specifies the range of cells to sort.
Remarks

When you sort multiple columns, the same sorting options are applied to each column, starting from the leftmost column in the range and proceeding to the right.

To sort multiple columns using a different sorting order for each, you can either call the Sort(SortFlags,Int32) method multiple times or set each column's Column.Sort property and call the Sort(SortFlags,Int32) method including the SortFlags.UseColSort flag in the flags parameter.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback