'Declaration Public Event CellListSelect As CellEventHandler
public event CellEventHandler CellListSelect
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.
Property | Description |
---|---|
Cell | Returns a reference to the cell of interest. |
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 an item selected. You can use this reference to access any of the returned cell's properties or methods.
This event is generated when an item is selected from the cell's dropdown list. A dropdown list item is considered selected when the user clicks it or highlights it when navigating the list using navigation keys.
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).
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Imports System.Diagnostics Private Sub UltraGrid1_CellListSelect(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.CellEventArgs) Handles ultraGrid1.CellListSelect ' CellListSelect gets fired when an item from a drop down is selected when editing ' a cell. Cell would have to be in edit mode for this to get fired. Following code ' prints out the selected item idex for value list drop downs. If Not Nothing Is e.Cell.Column.ValueList Then Dim itemIdex As Integer = e.Cell.Column.ValueList.SelectedItemIndex Debug.WriteLine("Selected Item Index = " & itemIdex) End If End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void ultraGrid1_CellListSelect(object sender, Infragistics.Win.UltraWinGrid.CellEventArgs e) { // CellListSelect gets fired when an item from a drop down is selected when editing // a cell. Cell would have to be in edit mode for this to get fired. Following code // prints out the selected item idex for value list drop downs. if ( null != e.Cell.Column.ValueList ) { int itemIdex = e.Cell.Column.ValueList.SelectedItemIndex; Debug.WriteLine( "Selected Item Index = " + itemIdex ); } }
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