FlexGrid for WinForms | ComponentOne
C1.Win.FlexGrid Namespace / C1FlexGridBase Class / AllowSorting Property

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

    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 Sort(SortFlags,Int32) 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