FlexGrid for WinForms
SortFlags Enumeration
Example Example 

Specifies how grid columns should be sorted.
Public Enum SortFlags 
   Inherits System.Enum
Dim instance As SortFlags
public enum SortFlags : System.Enum 
public enum class SortFlags : public System.Enum 
AscendingSort in ascending order.
AsDisplayedSort using the string representation of the data. In this mode, "100" appears before "2".
DescendingSort in descending order.
IgnoreCaseIgnore case when sorting strings.
NoneDo not sort. This setting is useful for skipping certain columns when sorting column ranges.
UseColSortUse the flags stored in the Column.Sort property of individual Column objects.
This enumeration contains flags that can be combined to customize the sorting process.
For example, the code below sorts two grid columns ignoring case.
// C#
SortFlags order = SortFlags.Ascending | SortFlags.IgnoreCase;
_flex.Sort(order, col1, col2);
' VB
Dim order As SortFlags = SortFlags.Ascending Or SortFlags.IgnoreCase
_flex.Sort(order, col1, col2)
Inheritance Hierarchy



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


C1.Win.C1FlexGrid Namespace



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

Send Feedback