True DBGrid for WinForms | ComponentOne
C1.Win.TrueDBGrid.8 Assembly / C1.Win.TrueDBGrid.BaseGrid Namespace / Frame Class / AllowSort Property

In This Topic
    AllowSort Property (Frame)
    In This Topic
    Gets or sets a value indicating the ability of the grid to automatically sort data when a column header is clicked.
    Syntax
    'Declaration
     
    Public Property AllowSort As System.Boolean
    public System.bool AllowSort {get; set;}
    Remarks

    If True, and if the DataView property is set to GroupBy, the grid will automatically filter column data upon grouping action.

    If False, the grid will fire the C1.Win.C1TrueDBGrid.C1TrueDBGrid.Sort event.

    If the DataView property is set to Group By and the user attempts to drag a column header into the grouping area, the grid will automatically sort the column data.

    If False, the C1.Win.C1TrueDBGrid.C1TrueDBGrid.Sort event allows the application to sort the data.

    See Also