'宣言 Public Event DoubleClickRow As DoubleClickRowEventHandler
public event DoubleClickRowEventHandler DoubleClickRow
イベント ハンドラが、このイベントに関連するデータを含む、DoubleClickRowEventArgs 型の引数を受け取りました。次の DoubleClickRowEventArgs プロパティには、このイベントの固有の情報が記載されます。
Private Sub ultraGrid1_DoubleClickRow(sender As Object, e As Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs) Handles Me.ultraGrid1.DoubleClickRow If e.Row.Band.Key = "customers" And e.RowArea = RowArea.RowSelectorArea Then Dim dlg As New CustomerInfoDialog(e.Row) dlg.ShowDialog() End If End Sub
private void ultraGrid1_DoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e) { if( e.Row.Band.Key == "customers" && e.RowArea == RowArea.RowSelectorArea ) { CustomerInfoDialog dlg = new CustomerInfoDialog( e.Row ); dlg.ShowDialog(); } }