BeforeHeaderEnterEditMode Event

Occurs before a header enters edit mode.
Public Event BeforeHeaderEnterEditMode As EventHandler(Of BeforeHeaderEnterEditModeEventArgs)
public event EventHandler<BeforeHeaderEnterEditModeEventArgs> BeforeHeaderEnterEditMode
Event Data

The event handler receives an argument of type BeforeHeaderEnterEditModeEventArgs containing data related to this event. The following BeforeHeaderEnterEditModeEventArgs properties provide information specific to this event.

Cancel (Inherited from System.ComponentModel.CancelEventArgs) 
Header (Inherited from Infragistics.Win.UltraWinGrid.CancelHeaderEventArgs)Returns the header.

Thecancelargument enables you to programmatically prevent the header from entering edit mode, meaning that the header is prepared to accept input from the user. This argument can be used to prevent the header from entering edit mode unless a certain condition is met.

This event is generated before a header enters edit mode.

When a header is in edit mode, the control'sIsHeaderInEditModeproperty is set to True.

TheAfterHeaderEnterEditModeevent, which occurs after a header enters edit mode, is generated after this event, providedcancelis not set to True.

TheBeforeHeaderExitEditModeevent is generated before a header exits edit mode.


Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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