Version

AfterCellListCloseUp Event

Occurs after a cell's dropdown list has been closed in a column using one of the dropdown list styles.
Syntax
'Declaration
 
Public Event AfterCellListCloseUp As CellEventHandler
public event CellEventHandler AfterCellListCloseUp
Event Data

The event handler receives an argument of type CellEventArgs containing data related to this event. The following CellEventArgs properties provide information specific to this event.

PropertyDescription
Cell Returns a reference to the cell of interest.
Remarks

The cell argument returns a reference to an UltraGridCell object that can be used to set properties of, and invoke methods on, the cell that had its dropdown list closed. You can use this reference to access any of the returned cell's properties or methods.

This event is generated when a cell's dropdown list has been closed, either programmatically, or by user interaction. A cell's dropdown list can be closed programmatically by setting the cell's DroppedDown property to False.

This event is only generated for a cell whose column's Style property is set to 4 (StyleDropDown), 5 (StyleDropDownList), 6 (StyleDropDownValidate), or 8 (StyleDropDownCalendar).

Set the column's ValueList property in order to populate the dropdown list.

The BeforeCellListDropDown event is generated when a cell's dropdown list is dropped down.

Example
Following code prints out the key of the column associated with the cell that closed its drop down.

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
Imports System.Diagnostics

   Private Sub UltraGrid1_AfterCellListCloseUp(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.CellEventArgs) Handles ultraGrid1.AfterCellListCloseUp

       If Not Nothing Is e.Cell.Column.ValueList Then
           Debug.WriteLine("AfterCellListCloseUp: Value list in column " & e.Cell.Column.Key & " has just closed up.")
       End If

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

private void ultraGrid1_AfterCellListCloseUp(object sender, Infragistics.Win.UltraWinGrid.CellEventArgs e)
{

	if ( null != e.Cell.Column.ValueList )
	{
		Debug.WriteLine( "AfterCellListCloseUp: Value list in column " + e.Cell.Column.Key + " has just closed up." );
	}

}
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