FlexGrid for WinForms
BeforeSort Event



Fires before a column is sorted by a click on a column header.
Syntax
'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
Remarks

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.

Requirements

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

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback