DataRowChangeEventArgs DataRowChangeEventArgs DataRowChangeEventArgs DataRowChangeEventArgs Class

Definition

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

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) DataRowChangeEventArgs(DataRow, DataRowAction) DataRowChangeEventArgs(DataRow, DataRowAction) DataRowChangeEventArgs(DataRow, DataRowAction)

Initializes a new instance of the DataRowChangeEventArgs class.

Properties

Action Action Action Action

Gets the action that has occurred on a DataRow.

Row Row Row Row

Gets the row upon which an action has occurred.

Methods

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()

Gets the Type of the current instance.

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

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)

Applies to

See Also