FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / SortFlags Enumeration
Example Example

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


    See Also