[]
Fires before a column is sorted by a click on a column header.
public event SortColEventHandler BeforeSort
Type | Description |
---|---|
SortColEventHandler | Fires before a column is sorted by a click on a column header. |
This event only fires if the sorting was caused by a click on a column header. It does not fire before sorting with the Sort(SortFlags, int) 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.