BeforeHeaderExitEditMode Event

Occurs before a header exits edit mode.
Public Event BeforeHeaderExitEditMode As EventHandler(Of BeforeHeaderExitEditModeEventArgs)
public event EventHandler<BeforeHeaderExitEditModeEventArgs> BeforeHeaderExitEditMode
Event Data

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

Cancel (Inherited from System.ComponentModel.CancelEventArgs) 
CancellingEditOperation Indicates whether the edit operation is being canceled.
ForceExit Indicates whether header is being forced to exit the edit mode.
Header (Inherited from Infragistics.Win.UltraWinGrid.CancelHeaderEventArgs)Returns the header.
NewCaption The new caption for the header.

The cancel argument enables you to programmatically prevent the header from exiting edit mode. This argument can be used to prevent the header from leaving edit mode unless a certain condition is met.

When a header is not in edit mode, the control's IsHeaderInEditMode property is set to False.

The AfterHeaderExitEditMode event, which occurs after a header exits edit mode, is generated after this event, provided cancel is not set to True.

The BeforeEnterEditMode event is generated before a header enters 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