BeforeSort Event

Fired before a column is sorted by a click on the ExplorerBar.

Syntax

Private Sub VSFlexGrid_BeforeSort( ByVal Col As Long, Order As Integer)

Remarks

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.

See Also

VSFlexGrid Control