Version

GridEventIds Enumeration

Uniquely identifies each UltraGrid specific event
Syntax
'Declaration
 
Public Enum GridEventIds 
   Inherits System.Enum
public enum GridEventIds : System.Enum 
Members
MemberDescription
AfterAutoSizeColumnEvent id that identifies the AfterAutoSizeColumn event.
AfterBandHiddenChangedEvent id that identifies AfterBandHiddenChanged event.
AfterCardCompressedStateChangedEvent id that identifies AfterCardCompressedStateChanged event.
AfterCardsScrollEvent id that identifies AfterCardsScroll event.
AfterCellActivateevent id that identifies AfterCellActivate event
AfterCellCancelUpdateevent id that identifies AfterCellCancelUpdate event
AfterCellListCloseUpevent id that identifies AfterCellListCloseUp event
AfterCellUpdateevent id that identifies AfterCellUpdate event
AfterChildBandCollapsedevent id that identifies BeforeChildBandCollapsed event
AfterChildBandExpandedevent id that identifies BeforeChildBandExpanded event
AfterClearAllFilterButtonClickedEvent id that identifies the AfterClearAllFilterButtonClicked event.
AfterColPosChangedevent id that identifies AfterColPosChanged event
AfterColRegionScrollevent id that identifies AfterColRegionScroll event
AfterColRegionSizeevent id that identifies AfterColRegionSize event
AfterEnterEditModeevent id that identifies AfterEnterEditMode event
AfterExitEditModeevent id that identifies AfterExitEditMode event
AfterGroupCollapsedevent id that identifies AfterGroupCollapsed event
AfterGroupExpandedevent id that identifies AfterGroupExpanded event
AfterGroupPosChangedevent id that identifies AfterGroupPosChanged event
AfterHeaderCheckStateChangedEvent id that identifies the AfterHeaderCheckStateChanged event.
AfterHeaderEnterEditModeevent id that identifies AfterHeaderEnterEditMode event
AfterHeaderExitEditModeevent id that identifies AfterHeaderExitEditMode event
AfterPerformActionEvent id that identifies AfterPerformAction event.
AfterRowActivateevent id that identifies AfterRowActivate event
AfterRowCancelUpdateevent id that identifies AfterRowCancelUpdate event
AfterRowCollapsedevent id that identifies AfterRowCollapsed event
AfterRowEditTemplateClosedEvent id that identifies the AfterRowEditTemplateClosed event.
AfterRowEditTemplateDisplayedEvent id that identifies the AfterRowEditTemplateDisplayed event.
AfterRowExpandedevent id that identifies AfterRowExpanded event
AfterRowFilterChangedEvent id that identifies AfterRowFilterChanged event.
AfterRowFilterDropDownPopulateEvent id that identifies AfterRowFilterDropDownPopulate event.
AfterRowFixedStateChangedEvent id that identifies AfterRowFixedStateChanged event.
AfterRowInsertevent id that identifies AfterRowInsert event
AfterRowLayoutItemResizedEvent id that identifies AfterRowLayoutItemResized event.
AfterRowRegionScrollevent id that identifies AfterRowRegionScroll event
AfterRowRegionSizeevent id that identifies AfterRowRegionSize event
AfterRowResizeevent id that identifies AfterRowResize event
AfterRowsDeletedevent id that identifies AfterRowsDeleted event
AfterRowUpdateevent id that identifies AfterRowUpdate event
AfterSelectChangeevent id that identifies AfterSelectChange event
AfterSortChangeevent id that identifies AfterSortChange event
AfterSummaryDialogEvent id that identifies AfterSummaryDialog event.
BeforeAutoSizeColumnEvent id that identifies the BeforeAutoSizeColumn event.
BeforeAutoSizeEditevent id that identifies BeforeAutoSizeEdit event
BeforeBandHiddenChangedEvent id that identifies BeforeBandHiddenChanged event.
BeforeCardCompressedStateChangedEvent id that identifies BeforeCardCompressedStateChanged event.
BeforeCellActivateevent id that identifies BeforeCellActivate event
BeforeCellCancelUpdateevent id that identifies BeforeCellCancelUpdate event
BeforeCellDeactivateevent id that identifies BeforeCellDeactivate event
BeforeCellListDropDownevent id that identifies BeforeCellListDropDown event
BeforeCellUpdateevent id that identifies BeforeCellUpdate event
BeforeChildBandCollapsedevent id that identifies BeforeChildBandCollapsed event
BeforeChildBandExpandedevent id that identifies BeforeChildBandExpanded event
BeforeClearAllFilterButtonClickedEvent id that identifies the BeforeClearAllFilterButtonClicked event.
BeforeColPosChangedevent id that identifies BeforeColPosChanged event
BeforeColRegionRemovedevent id that identifies BeforeColRegionRemoved event
BeforeColRegionScrollevent id that identifies BeforeColRegionScroll event
BeforeColRegionSizeevent id that identifies BeforeColRegionSize event
BeforeColRegionSplitevent id that identifies BeforeColRegionSplit event
BeforeColumnChooserDisplayedEvent id that identifies BeforeColumnChooserDisplayed event.
BeforeCustomRowFilterDialogevent id that identifies BeforeCustomRowFilterDialog event.
BeforeDisplayDataErrorTooltipEvent id that identifies BeforeDisplayDataErrorTooltip event.
BeforeEnterEditModeevent id that identifies BeforeEnterEditMode event
BeforeExitEditModeevent id that identifies BeforeExitEditMode event
BeforeGroupCollapsedevent id that identifies BeforeGroupCollapsed event
BeforeGroupExpandedevent id that identifies BeforeGroupExpanded event
BeforeGroupPosChangedevent id that identifies BeforeGroupPosChanged event
BeforeHeaderCheckStateChangedEvent id that identifies the BeforeHeaderCheckStateChanged event.
BeforeHeaderEnterEditModeevent id that identifies BeforeHeaderEnterEditMode event
BeforeHeaderExitEditModeevent id that identifies BeforeHeaderExitEditMode event
BeforeMultiCellOperationEvent id that identifies BeforeMultiCellOperation event.
BeforePerformActionEvent id that identifies BeforePerformAction event.
BeforePrintevent id that identifies BeforePrint event
BeforeRowActivateevent id that identifies BeforeRowActivate event
BeforeRowCancelUpdateevent id that identifies BeforeRowCancelUpdate event
BeforeRowCollapsedevent id that identifies BeforeRowCollapsed event
BeforeRowDeactivateevent id that identifies BeforeRowDeactivate event
BeforeRowEditTemplateClosedEvent id that identifies the BeforeRowEditTemplateClosed event.
BeforeRowEditTemplateDisplayedEvent id that identifies the BeforeRowEditTemplateDisplayed event.
BeforeRowExpandedevent id that identifies BeforeRowExpanded event
BeforeRowFilterChangedEvent id that identifies BeforeRowFilterChanged event.
BeforeRowFilterDropDownevent id that identifies BeforeRowFilterDropDown event.
BeforeRowFilterDropDownPopulateEvent id that identifies BeforeRowFilterDropDownPopulate event.
BeforeRowFixedStateChangedEvent id that identifies BeforeRowFixedStateChanged event.
BeforeRowInsertevent id that identifies BeforeRowInsert event
BeforeRowLayoutItemResizedEvent id that identifies BeforeRowLayoutItemResized event.
BeforeRowRegionRemovedevent id that identifies BeforeRowRegionRemoved event
BeforeRowRegionScrollevent id that identifies BeforeRowRegionScroll event
BeforeRowRegionSizeevent id that identifies BeforeRowRegionSize event
BeforeRowRegionSplitevent id that identifies BeforeRowRegionSplit event
BeforeRowResizeevent id that identifies BeforeRowResize event
BeforeRowsDeletedevent id that identifies BeforeRowsDeleted event
BeforeRowUpdateevent id that identifies BeforeRowUpdate event
BeforeSelectChangeevent id that identifies BeforeSelectChange event
BeforeSortChangeevent id that identifies BeforeSortChange event
BeforeSummaryDialogEvent id that identifies BeforeSummaryDialog event.
CellChangeevent id that identifies CellChange event
CellDataErrorEvent id that identifies CellDataError event.
CellListSelectevent id that identifies CellListSelect event
Clickevent id that identifies Click event
ClickCellEvent id that identifies the ClickCell event.
ClickCellButtonevent id that identifies ClickCellButton event
DblClickevent id that identifies DblClick event
DoubleClickCellEvent id that identifies DoubleClickCell event.
DoubleClickHeaderEvent id that identifies DoubleClickHeader event.
DoubleClickRowEvent id that identifies DoubleClickRow event.
Errorevent id that identifies Error event
ExternalSummaryValueRequestedEvent id that identifies the ExternalSummaryValueRequested event.
FilterCellValueChangedEvent id that identifies FilterCellValueChanged event.
FilterRowevent id that identifies FilterRow event
GestureCompletedThe GestureCompleted event.
GestureQueryStatusThe GestureQueryStatus event.
GestureStartingThe GestureStarting event.
InitializeGroupByRowevent id that identifies InitializeGroupByRow event
InitializeLayoutevent id that identifies InitializeLayout event
InitializeLogicalPrintPageevent id that identifies InitializeLogicalPrintPage event
InitializePrintevent id that identifies InitializePrint event
InitializePrintPreviewevent id that identifies InitializePrintPreview event
InitializeRowevent id that identifies InitializeRow event
InitializeRowsCollectionEvent id that identifies InitializeRowsCollection event.
InitializeTemplateAddRowEvent id that identifies InitializeTemplateAddRow event.
MouseEnterElementevent id that identifies MouseEnterElement event
MouseLeaveElementevent id that identifies MouseLeaveElement event
OnSelectionDragevent id that identifies OnSelectionDrag event
PanGestureThe PanGesture event.
PressAndHoldGestureThe PressAndHoldGesture event.
PressAndTapGestureThe PressAndTapGesture event.
RotateGestureThe RotateGesture event.
RowEditTemplateRequestedEvent id that identifies the RowEditTemplateRequested event.
SummaryValueChangedEvent id that identifies SummaryValueChanged event.
TwoFingerTapGestureThe TwoFingerTapGesture event.
ZoomGestureThe ZoomGesture event.
Example
The following sample code illustrates how the event manager can be used to temporarily enable/disable events.

Imports Infragistics.Win.UltraWinGrid

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

    If Me.ultraGrid1.ActiveRow Is Nothing Then Return

    Dim eventManager As GridEventManager

    ' Get the grid's event manager.
    ' The event manager is used to temporarily disable events
    ' to prevent them from being raised. This can be very
    ' convenient in a situation where one or more properties
    ' are being set in code and the events they would normally 
    ' raise would cause unnecessary or counter-productive
    ' code to be executed.
    '
    ' Note: All events are enabled by default.
    eventManager = Me.ultraGrid1.EventManager

    ' Disable the Before/AfterSelectChange events
    eventManager.SetEnabled(GridEventIds.BeforeSelectChange, False)
    eventManager.SetEnabled(GridEventIds.AfterSelectChange, False)

    ' Toggle the selection state of the active row.
    ' Note: This would normally cause the Before/AfterSelectChange 
    ' events to be raised. However, since the above code disabled
    ' the events they won't be.
    Me.ultraGrid1.ActiveRow.Selected = Not Me.ultraGrid1.ActiveRow.Selected

    ' Re-enable the Before/AfterSelectChange events
    eventManager.SetEnabled(GridEventIds.BeforeSelectChange, True)
    eventManager.SetEnabled(GridEventIds.AfterSelectChange, True)

    ' The 'AllEventsEnabled' property lets you enable/disable
    ' all events will a single line of code. If any event is 
    ' disabled the 'AllEventsEnabled' property returns false.
    If eventManager.AllEventsEnabled = False Then
        eventManager.AllEventsEnabled = True
    End If

    ' The event manager also exposes an 'IsEnabled' method
    ' to see if an event is enabled or disbled.
    If False = eventManager.IsEnabled(GridEventIds.BeforeSelectChange) Then
        eventManager.SetEnabled(GridEventIds.BeforeSelectChange, True)
    End If

    ' The grid event manager also exposes overloaded 
    ' 'IsEnabled' and 'SetEnabled' methods that take an 
    ' event group so that, for example all 'Before' or all
    ' 'After' events can be enabled/disabled. If any event
    ' in the group is disabled the 'IsEnabled' method returns
    ' false.
    If False = eventManager.IsEnabled(EventGroups.BeforeEvents) Then
        eventManager.SetEnabled(EventGroups.BeforeEvents, True)
    End If

    eventManager.SetEnabled(EventGroups.AfterEvents, True)

    ' The 'InProgress' method will return true if the 
    ' specified event is currently being raised. This
    ' is often helpful in methods that can be called
    ' from various points in an application to determine
    ' what is triggering the call.
    If eventManager.InProgress(GridEventIds.BeforeSelectChange) Then
        ' ... 
    End If

    ' The UltraCombo and UltraDropDown controls also expose 
    ' event managers for their custom events. However,
    ' since they have considerably fewer events they don't
    ' expose overloaded 'IsEnabled' and 'SetEnabled' methods 
    ' to control groups of events.
    Dim comboManager As ComboEventManager
    comboManager = Me.ultraCombo1.EventManager
    comboManager.SetEnabled(ComboEventIds.BeforeDropDown, True)

    Dim dropDownManager As DropDownEventManager
    dropDownManager = Me.UltraDropDown1.EventManager
    dropDownManager.SetEnabled(DropDownEventIds.AfterCloseUp, True)

End Sub
using Infragistics.Win.UltraWinGrid;

private void button2_Click(object sender, System.EventArgs e)
{

	if ( this.ultraGrid1.ActiveRow == null )
		return;

	// Get the grid's event manager.
	// The event manager is used to temporarily disable events
	// to prevent them from being raised. This can be very
	// convenient in a situation where one or more properties
	// are being set in code and the events they would normally 
	// raise would cause unnecessary or counter-productive
	// code to be executed.
	//
	// Note: All events are enabled by default.
	GridEventManager eventManager = this.ultraGrid1.EventManager;

	// Disable the Before/AfterSelectChange events
	eventManager.SetEnabled( GridEventIds.BeforeSelectChange, false );
	eventManager.SetEnabled( GridEventIds.AfterSelectChange, false );

	// Toggle the selection state of the active row.
	// Note: This would normally cause the Before/AfterSelectChange 
	// events to be raised. However, since the above code disabled
	// the events they won't be.
	this.ultraGrid1.ActiveRow.Selected = 
		!this.ultraGrid1.ActiveRow.Selected;

	// Re-enable the Before/AfterSelectChange events
	eventManager.SetEnabled( GridEventIds.BeforeSelectChange, true );
	eventManager.SetEnabled( GridEventIds.AfterSelectChange, true );

	// The 'AllEventsEnabled' property lets you enable/disable
	// all events will a single line of code. If any event is 
	// disabled the 'AllEventsEnabled' property returns false.
	if ( !eventManager.AllEventsEnabled )
		eventManager.AllEventsEnabled = true;

	// The event manager also exposes an 'IsEnabled' method
	// to see if an event is enabled or disbled.
	if ( !eventManager.IsEnabled(GridEventIds.BeforeSelectChange ) )
		eventManager.SetEnabled(GridEventIds.BeforeSelectChange, true );

	// The grid event manager also exposes overloaded 
	// 'IsEnabled' and 'SetEnabled' methods that take an  
	// event group so that, for example all 'Before' or all
	// 'After' events can be enabled/disabled. If any event
	// in the group is disabled the 'IsEnabled' method returns
	// false.
	if ( !eventManager.IsEnabled(EventGroups.BeforeEvents ) )
		eventManager.SetEnabled(EventGroups.BeforeEvents, true );

	eventManager.SetEnabled(EventGroups.AfterEvents, true );

	// The 'InProgress' method will return true if the 
	// specified event is currently being raised. This
	// is often helpful in methods that can be called
	// from various points in an application to determine
	// what is triggering the call.
	if ( eventManager.InProgress( GridEventIds.BeforeSelectChange ) )
	{
		// ... 
	}

	// The UltraCombo and UltraDropDown controls also expose 
	// event managers for their custom events. However,
	// since they have considerably fewer events they don't
	// expose overloaded 'IsEnabled' and 'SetEnabled' methods 
	// to control groups of events.
	ComboEventManager comboManager = this.ultraCombo1.EventManager;
	comboManager.SetEnabled( ComboEventIds.BeforeDropDown, true );

	DropDownEventManager dropDownManager = this.ultraDropDown1.EventManager;
	dropDownManager.SetEnabled( DropDownEventIds.AfterCloseUp, true );

}
Requirements

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