แก้ไข

แชร์ผ่าน


DataRowChangeEventArgs Class

Definition

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

Examples

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

Remarks

The RowChanged, RowChanging, OnRowDeleted, and OnRowDeleting events occur when an action is performed on a DataRow.

Constructors

DataRowChangeEventArgs(DataRow, DataRowAction)

Initializes a new instance of the DataRowChangeEventArgs class.

Properties

Action

Gets the action that has occurred on a DataRow.

Row

Gets the row upon which an action has occurred.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also