Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SortingMode Enumeration
Example Example


In This Topic
    SortingMode Enumeration
    In This Topic
    The mode used to specify the sorting behavior.
    Syntax
    'Declaration
     
    Public Enum SortingMode 
       Inherits System.Enum
    'Usage
     
    Dim instance As SortingMode
    public enum SortingMode : System.Enum 
    Members
    MemberDescription
    RangeSorting Sorts by swapping real data in the models.
    ViewIndex Sorts using the View index.
    Example
    This example uses the SortingMode enumeration.
    fpSpread1.ActiveSheet.Columns[1].AllowAutoSort = true;
    fpSpread1.ActiveSheet.Columns[1].AllowAutoFilter = true;
    fpSpread1.ActiveSheet.AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.EnhancedContextMenu;
    fpSpread1.ActiveSheet.AutoSortEnhancedContextMenu = true;
    fpSpread1.ActiveSheet.AutoSortEnhancedMode = FarPoint.Win.Spread.SortingMode.RangeSorting;
    FpSpread1.ActiveSheet.Columns(1).AllowAutoSort = True
    FpSpread1.ActiveSheet.Columns(1).AllowAutoFilter = True
    FpSpread1.ActiveSheet.AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.EnhancedContextMenu
    FpSpread1.ActiveSheet.AutoSortEnhancedContextMenu = True
    FpSpread1.ActiveSheet.AutoSortEnhancedMode = FarPoint.Win.Spread.SortingMode.RangeSorting
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             FarPoint.Win.Spread.SortingMode

    See Also