Infragistics(R) NetAdvantage(R) Windows Forms
DropDownEventArgs Class
Members  Example  See Also  E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace : DropDownEventArgs Class

Event parameters used for the AfterDropDown and AfterCloseUp event

Syntax

Visual Basic (Declaration) 
Public Class DropDownEventArgs 
   Inherits System.EventArgs
C# 
public class DropDownEventArgs : System.EventArgs 

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.

Visual BasicCopy Code
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
C#Copy Code
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" );
	}

}

See Also