Version

Owner Property (DropDownEventArgs)

owner
Syntax
'Declaration
 
Public ReadOnly Property Owner As Control
public Control Owner {get;}
Example
Following code shows some of the information available in AfterDropDown 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_AfterDropDown(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.DropDownEventArgs) Handles ultraDropDown1.AfterDropDown

      ' AfterDropDown gets when the drop down is droppedn down.
      Debug.WriteLine("UltraDropDown is dropped down.")

      ' Write out the name of the owner control where the drop down is being dropped down in.
      ' An UltraDropDown may be assigned to multiple UltraGrids. The Owner indicates which
      ' owner the UltraDropDown is currently activated and is dropping down 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_AfterDropDown(object sender, Infragistics.Win.UltraWinGrid.DropDownEventArgs e)
{

	// AfterDropDown gets when the drop down is droppedn down.
	Debug.WriteLine( "UltraDropDown is dropped down." );

	// Write out the name of the owner control where the drop down is being dropped down in.
	// An UltraDropDown may be assigned to multiple UltraGrids. The Owner indicates which
	// owner the UltraDropDown is currently activated and is dropping down 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