Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub UltraDropDown1_RowSelected(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.RowSelectedEventArgs) Handles ultraDropDown1.RowSelected ' UltraDropDown の行が選択されたときに RowSelected を発生します ' 行の選択が解除して新しい行が選択されない場合に e.Row は null 値になります If Not Nothing Is e.Row Then Debug.WriteLine("RowSelected: New row has been selected. ProductID = " & e.Row.Cells("ProductID").Value.ToString()) Else Debug.WriteLine("RowSelected: No row is selected currently.") End If End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void ultraDropDown1_RowSelected(object sender, Infragistics.Win.UltraWinGrid.RowSelectedEventArgs e) { // UltraDropDown の行が選択されたときに RowSelected を発生します // 行の選択を解除した後に新しい行が選択されない場合、e.Row は null 値になります if ( null != e.Row ) Debug.WriteLine( "RowSelected: New row has been selected. ProductID = " + e.Row.Cells["ProductID"].Value.ToString( ) ); else Debug.WriteLine( "RowSelected: No row is selected currently." ); }