FlexGrid for WinForms
SortFlags Enumeration
Example Example 



Specifies how grid columns should be sorted.
Syntax
'Declaration
 
<FlagsAttribute()>
Public Enum SortFlags 
   Inherits System.Enum
'Usage
 
Dim instance As SortFlags
[Flags()]
public enum SortFlags : System.Enum 
[Flags()]
public enum class SortFlags : public System.Enum 
Members
MemberDescription
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.
Remarks
This enumeration contains flags that can be combined to customize the sorting process.
Example
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

System.Object
   System.ValueType
      System.Enum
         C1.Win.C1FlexGrid.SortFlags

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

C1.Win.C1FlexGrid Namespace

 

 


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

Send Feedback