Version

RowSelectedEventHandler Delegate

delegate for handling event that is fired whe a new row is selected in the ultradropdown
Syntax
'Declaration
 
Public Delegate Sub RowSelectedEventHandler( _
   ByVal sender As Object, _
   ByVal e As RowSelectedEventArgs _
) 
public delegate void RowSelectedEventHandler( 
   object sender,
   RowSelectedEventArgs e
)

Parameters

sender
e
Example
Following code prints out value of the ProductID field of the newly selected row every time a new row is selected in the UltraDropDown.

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.UltraWinGrid

  Private Sub UltraDropDown1_RowSelected(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.RowSelectedEventArgs) Handles ultraDropDown1.RowSelected

      ' RowSelected gets fired whenever a different row is selected in the UltraDropDown.			

      ' e.Row would be null if a row was unselected and no new row has been selected.
      If Not Nothing Is e.Row Then
          Debug.WriteLine("RowSelected: New row has been selected. ProductID = " & e.Row.Cells("ProductID").Value.ToString())
      Else
          Debug.WriteLine("RowSelected: No row is selected currently.")
      End If

  End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

private void ultraDropDown1_RowSelected(object sender, Infragistics.Win.UltraWinGrid.RowSelectedEventArgs e)
{

	// RowSelected gets fired whenever a different row is selected in the UltraDropDown.			

	// e.Row would be null if a row was unselected and no new row has been selected.
	if ( null != e.Row )
		Debug.WriteLine( "RowSelected: New row has been selected. ProductID = " + e.Row.Cells["ProductID"].Value.ToString( ) );
	else
		Debug.WriteLine( "RowSelected: No row is selected currently." );

}
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