Version

RowDeletedEventHandler Delegate

Delegate for RowDeleted event.
Syntax
'Declaration
 
Public Delegate Sub RowDeletedEventHandler( _
   ByVal sender As Object, _
   ByVal e As RowDeletedEventArgs _
) 
public delegate void RowDeletedEventHandler( 
   object sender,
   RowDeletedEventArgs e
)

Parameters

sender
e
Example
Following code shows some of the information available in RowDeleting and RowDeleted events.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

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


    Private Sub UltraDataSource1_RowDeleting(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinDataSource.RowDeletingEventArgs) Handles ultraDataSource1.RowDeleting
        ' RowDeleting is fired when the user attempts to delete a row through a bound 
        ' control (like UltraGrid for example). Here you typically delete the row from
        ' the external data source if there is one.

        Debug.WriteLine("Row is being deleted at index " & e.Row.Index _
                        & " in the row collection associated with band " & e.Row.Band.Key & ".")
    End Sub

    Private Sub UltraDataSource1_RowDeleted(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinDataSource.RowDeletedEventArgs) Handles ultraDataSource1.RowDeleted
        ' Fired after RowDeleting is fired.

        ' Row property returns the row that was deleted. Since the row is not in
        ' the row collection anymore, it's Index will return -1.
        Debug.WriteLine("Row is deleted. It's Index is now " & e.Row.Index & ".")
    End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinDataSource;
using System.Diagnostics;


		private void ultraDataSource1_RowDeleting(object sender, Infragistics.Win.UltraWinDataSource.RowDeletingEventArgs e)
		{
			// RowDeleting is fired when the user attempts to delete a row through a bound 
			// control (like UltraGrid for example). Here you typically delete the row from
			// the external data source if there is one.

			Debug.WriteLine( "Row is being deleted at index " + e.Row.Index
				+ " in the row collection associated with band " + e.Row.Band.Key + "." );
		}

		private void ultraDataSource1_RowDeleted(object sender, Infragistics.Win.UltraWinDataSource.RowDeletedEventArgs e)
		{
			// Fired after RowDeleting is fired.

			// Row property returns the row that was deleted. Since the row is not in
			// the row collection anymore, it's Index will return -1.
			Debug.WriteLine( "Row is deleted. It's Index is now " + e.Row.Index + "." );
		}
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