VSFlexGrid Control > VSFlexGrid Properties, Events, and Methods > VSFlexGrid Events > BeforeSort Event |
Fired before a column is sorted by a click on the ExplorerBar.
Private Sub VSFlexGrid_BeforeSort( ByVal Col As Long, Order As Integer)
This event is only fired if the sorting was caused by a click on the ExplorerBar. It is not fired before sorting with the Sort property.
This event is useful when you want to prevent the user from sorting certain columns or to specify custom sorting orders for specific columns. You may do so by modifying the value of the Order parameter.