DataRowChangeEventArgs.Row DataRowChangeEventArgs.Row DataRowChangeEventArgs.Row DataRowChangeEventArgs.Row Property

定義

アクションが実行された行を取得します。Gets the row upon which an action has occurred.

public:
 property System::Data::DataRow ^ Row { System::Data::DataRow ^ get(); };
public System.Data.DataRow Row { get; }
member this.Row : System.Data.DataRow
Public ReadOnly Property Row As DataRow

プロパティ値

アクションが実行された DataRowThe DataRow upon which an action has occurred.

次の例では、追加、DataRowChangeEventHandlerと行が変更されたときにイベントを処理するプロシージャ。The following example adds a DataRowChangeEventHandler and the procedure to handle the event when a row is changed.


Private dataTable As DataTable

Private Sub [AddHandler]()
   dataTable = CType(DataGrid1.DataSource, DataTable)
   AddHandler dataTable.RowChanged, AddressOf Me.dataTable_Changed
End Sub

Private Sub dataTable_Changed _
(ByVal sender As System.Object, ByVal e As System.Data.DataRowChangeEventArgs)
   Console.WriteLine("Row Changed", e.Action, e.Row.Item(DataGrid1.CurrentCell.ColumnNumber))
End Sub

適用対象

こちらもご覧ください