C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class : BeforeSort Event |
'Declaration
<C1DescriptionAttribute("Fires before a column is sorted by a click on a column header.")> Public Event BeforeSort As SortColEventHandler
'Usage
Dim instance As C1FlexGridBase Dim handler As SortColEventHandler AddHandler instance.BeforeSort, handler
[C1Description("Fires before a column is sorted by a click on a column header.")] public event SortColEventHandler BeforeSort
[C1Description("Fires before a column is sorted by a click on a column header.")] public: event SortColEventHandler^ BeforeSort
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,Int32) 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 SortColEventArgs.Order parameter.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2