Version

DataSourceEventIds Enumeration

Uniquely identifies each UltraDataSource event.
Syntax
'Declaration
 
Public Enum DataSourceEventIds 
   Inherits System.Enum
public enum DataSourceEventIds : System.Enum 
Members
MemberDescription
CellDataRequestedEvent id that identifies UltraDataSource.CellDataRequested event.
CellDataUpdatedEvent id that identifies UltraDataSource.CellDataUpdated event.
CellDataUpdatingEvent id that identifies UltraDataSource.CellDataUpdating event.
InitializeDataRowEvent id that identifies UltraDataSource.InitializeDataRow event.
InitializeRowsCollectionEvent id that identifies UltraDataSource.InitializeRowsCollection event.
RowAddedEvent id that identifies UltraDataSource.RowAdded event.
RowAddingEvent id that identifies UltraDataSource.RowAdding event.
RowBeginEditEvent id that identifies UltraDataSource.RowBeginEdit event.
RowCancelEditEvent id that identifies UltraDataSource.RowCancelEdit event.
RowDeletedEvent id that identifies UltraDataSource.RowDeleted event.
RowDeletingEvent id that identifies UltraDataSource.RowDeleting event.
RowEndEditEvent id that identifies UltraDataSource.RowEndEdit event.
Example
Following code shows how to disable an individual event or a group of events.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinDataSource


    Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim eventManager As DataSourceEventManager = Me.UltraDataSource1.EventManager

        ' You can disable an individual event from firing.
        Debug.WriteLine("InitializeDataRow enabled ? " & eventManager.IsEnabled(DataSourceEventIds.InitializeDataRow))
        eventManager.SetEnabled(DataSourceEventIds.InitializeDataRow, False)
        Debug.WriteLine("InitializeDataRow enabled ? " & eventManager.IsEnabled(DataSourceEventIds.InitializeDataRow))

        ' You can also disable a group of events from firing.
        Debug.WriteLine("After events enabled ? " & eventManager.IsEnabled(DataSourceEventGroups.AfterEvents))
        eventManager.SetEnabled(DataSourceEventGroups.AfterEvents, False)
        Debug.WriteLine("After events enabled ? " & eventManager.IsEnabled(DataSourceEventGroups.AfterEvents))
    End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinDataSource;
using System.Diagnostics;


		private void button1_Click(object sender, System.EventArgs e)
		{
			DataSourceEventManager eventManager = this.ultraDataSource1.EventManager;

			// You can disable an individual event from firing.
			Debug.WriteLine( "InitializeDataRow enabled ? " + eventManager.IsEnabled( DataSourceEventIds.InitializeDataRow ) );
			eventManager.SetEnabled( DataSourceEventIds.InitializeDataRow, false );
			Debug.WriteLine( "InitializeDataRow enabled ? " + eventManager.IsEnabled( DataSourceEventIds.InitializeDataRow ) );

			// You can also disable a group of events from firing.
			Debug.WriteLine( "After events enabled ? " + eventManager.IsEnabled( DataSourceEventGroups.AfterEvents ) );
			eventManager.SetEnabled( DataSourceEventGroups.AfterEvents, false );
			Debug.WriteLine( "After events enabled ? " + eventManager.IsEnabled( DataSourceEventGroups.AfterEvents ) );
		}
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