C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class > Sort Method : Sort(SortFlags,Int32,Int32) Method |
'Declaration
Public Overloads Overridable Sub Sort( _ ByVal order As SortFlags, _ ByVal col1 As Integer, _ ByVal col2 As Integer _ )
'Usage
Dim instance As C1FlexGridBase Dim order As SortFlags Dim col1 As Integer Dim col2 As Integer instance.Sort(order, col1, col2)
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 order parameter.
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