ComponentOne FlexPivot for WinForms
C1.Win.C1FlexGrid.4.5.2 Assembly / C1.Win.C1FlexGrid Namespace / SortFlags Enumeration
Example Example

In This Topic
    SortFlags Enumeration
    In This Topic
    Specifies how grid columns should be sorted.
    Syntax
    'Declaration
     
    Public Enum SortFlags 
       Inherits System.Enum
    public enum SortFlags : 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

    See Also