'宣言 Public Event RowSelectorClicked As EventHandler(Of RowSelectorClickedEventArgs)
public event EventHandler<RowSelectorClickedEventArgs> RowSelectorClicked
イベント ハンドラが、このイベントに関連するデータを含む、RowSelectorClickedEventArgs 型の引数を受け取りました。次の RowSelectorClickedEventArgs プロパティには、このイベントの固有の情報が記載されます。
AddHandler Me.MyGrid.RowSelectorClicked, AddressOf MyGrid_RowSelectorClicked Private Sub MyGrid_RowSelectorClicked(ByVal sender As System.Object, ByVal e As RowSelectorClickedEventArgs) System.Diagnostics.Debug.WriteLine("The following row with Product Name : " + e.Row.Cells(1).Value + " was selected") End Sub
this.MyGrid.RowSelectorClicked +=new EventHandler<RowSelectorClickedEventArgs>(MyGrid_RowSelectorClicked); private void MyGrid_RowSelectorClicked(object sender, RowSelectorClickedEventArgs e) { System.Diagnostics.Debug.WriteLine("The following row with Product Name : " + e.Row.Cells[1].Value+" was selected"); }