Version

OnAfterCloseUp Method (UltraDropDown)

Called after the list has closed
Syntax
'Declaration
 
Protected Overridable Sub OnAfterCloseUp( _
   ByVal e As DropDownEventArgs _
) 
protected virtual void OnAfterCloseUp( 
   DropDownEventArgs e
)

Parameters

e
An System.EventArgs that contains the event data.
Example
Following code shows some of the information available in AfterCloseUp event.

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_AfterCloseUp(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.DropDownEventArgs) Handles ultraDropDown1.AfterCloseUp

      ' AfterCloseUp gets fired after the drop down has closed up.
      Debug.WriteLine("UltraDropDown is closed up.")

      ' Write out the name of the owner control where the drop down is being closed up in.
      ' An UltraDropDown may be assigned to multiple UltraGrids. The Owner indicates which
      ' owner the UltraDropDown is currently activated and is closing up in.
      If Not e.Owner Is Nothing Then
          Debug.WriteLine("Owner is " & e.Owner.Name)
      Else
          Debug.WriteLine("Owner is Nothing")
      End If

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

private void ultraDropDown1_AfterCloseUp(object sender, Infragistics.Win.UltraWinGrid.DropDownEventArgs e)
{

	// AfterCloseUp gets fired after the drop down has closed up.
	Debug.WriteLine( "UltraDropDown is closed up." );

	// Write out the name of the owner control where the drop down is being closed up in.
	// An UltraDropDown may be assigned to multiple UltraGrids. The Owner indicates which
	// owner the UltraDropDown is currently activated and is closing up in.
	if ( null != e.Owner )
	{
		Debug.WriteLine( "Owner is " + e.Owner.Name );
	}
	else
	{
		Debug.WriteLine( "Owner is null" );
	}

}
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