ComponentOne FlexPivot for WinForms
C1.Win.C1FlexGrid.4.5.2 Assembly / C1.Win.C1FlexGrid Namespace / C1FlexGrid Class / AllowSorting Property

In This Topic
    AllowSorting Property (C1FlexGrid)
    In This Topic
    Gets or sets whether the user is allowed to sort columns using the mouse.
    Syntax
    'Declaration
     
    Public Property AllowSorting As AllowSortingEnum
    public AllowSortingEnum AllowSorting {get; set;}
    Remarks

    When the grid is used in bound mode, the sorting is performed by the DataSource object. If the data source object does not support sorting, this property has no effect.

    In unbound mode, you can also sort data using the C1FlexGridBase.Sort method.

    The column range sorting was renamed to AllowSortingEnum.ColumnRange for backward compatibility.

    The user can clear column sorting with Ctrl+click on its header for all modes except AllowSortingEnum.ColumnRange.

    See Also