DataRowChangeEventArgs DataRowChangeEventArgs DataRowChangeEventArgs DataRowChangeEventArgs Class


public ref class DataRowChangeEventArgs : EventArgs
public class DataRowChangeEventArgs : EventArgs
type DataRowChangeEventArgs = class
    inherit EventArgs
Public Class DataRowChangeEventArgs
Inherits EventArgs

次の例では、追加、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


RowChangedRowChangingOnRowDeleted、およびOnRowDeletingでアクションが実行されると、イベントが発生した、DataRowします。The RowChanged, RowChanging, OnRowDeleted, and OnRowDeleting events occur when an action is performed on a DataRow.


DataRowChangeEventArgs(DataRow, DataRowAction) DataRowChangeEventArgs(DataRow, DataRowAction) DataRowChangeEventArgs(DataRow, DataRowAction) DataRowChangeEventArgs(DataRow, DataRowAction)

DataRowChangeEventArgs クラスの新しいインスタンスを初期化します。Initializes a new instance of the DataRowChangeEventArgs class.


Action Action Action Action

DataRow で実行されたアクションを取得します。Gets the action that has occurred on a DataRow.

Row Row Row Row

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


Equals(Object) Equals(Object) Equals(Object) Equals(Object)

指定したオブジェクトが、現在のオブジェクトと等しいかどうかを判断します。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

既定のハッシュ関数として機能します。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

現在のインスタンスの Type を取得します。Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

現在のオブジェクトを表す文字列を返します。Returns a string that represents the current object.

(Inherited from Object)