BeforeSort Event

Fired before a column is sorted by a double click on the column header.


Public Event BeforeSort As BeforeSortEventHandler

Applies To

Grid Object


The following parameters are available:

Parameter Description
Col Column on which sort occurred.
Order Sorting orders for specific column.


This event is only fired if the sorting was caused by a double click on the column header. It is not fired before sorting with the Sort method.

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

AllowUserSort Property , AfterSort Event