DataRowChangeEventArgs Class
Provides data for the RowChanged, RowChanging, OnRowDeleting, and OnRowDeleted events.
Assembly: System.Data (in System.Data.dll)
| Name | Description | |
|---|---|---|
![]() | DataRowChangeEventArgs(DataRow^, DataRowAction) | Initializes a new instance of the DataRowChangeEventArgs class. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
The RowChanged, RowChanging, OnRowDeleted, and OnRowDeleting events occur when an action is performed on a DataRow.
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
Available since 1.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


