ComponentOne FlexPivot for WinForms
C1.Win.FlexPivot.4.5.2 Assembly / C1.Win.FlexPivot Namespace / C1FlexPivotGrid Class / AfterSort Event

In This Topic
    AfterSort Event (C1FlexPivotGrid)
    In This Topic
    Fires after a column is sorted by a click on a column header.
    Syntax
    'Declaration
     
    Public Event AfterSort As SortColEventHandler
    public event SortColEventHandler AfterSort
    Event Data

    The event handler receives an argument of type SortColEventArgs containing data related to this event. The following SortColEventArgs properties provide information specific to this event.

    PropertyDescription
    Gets or sets a value indicating whether the drag operation should be canceled.  
    Gets the column that is being sorted.  
    Gets or sets a value indicating whether the drag operation has been handled by the event handler.  
    Gets or sets a SortFlags value that determines the sorting order.  
    Remarks

    This event only fires if the sorting was caused by a click on a column header cell (see the C1.Win.C1FlexGrid.C1FlexGridBase.AllowSorting property). It does not fire after sorting with the C1.Win.C1FlexGrid.C1FlexGridBase.Sort method.

    This event is useful if you want to update user interface elements to reflect the new sorting. To prevent certain columns from being sorted, or to alter their default sorting order, use the C1.Win.C1FlexGrid.Column.AllowSorting or handle the C1.Win.C1FlexGrid.C1FlexGridBase.BeforeSort event.

    See Also