NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataRowChangeEventArgs Class

Provides data for the RowChanged, RowChanging, OnRowDeleting, and OnRowDeleted events.

Object
   EventArgs
      DataRowChangeEventArgs

[Visual Basic]
Public Class DataRowChangeEventArgs
   Inherits EventArgs
[C#]
public class DataRowChangeEventArgs : EventArgs
[C++]
public __gc class DataRowChangeEventArgs : public EventArgs
[JScript]
public class DataRowChangeEventArgs extends EventArgs

Remarks

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

Requirements

Namespace: System.Data

Assembly: System.Data.dll

Example [Visual Basic]

The following example adds a DataRowChangeEventHandler and the procedure to handle the event when a row is changed.

[Visual Basic]

Private myTable As DataTable

Private Sub AddHandler()
   Set myTable = datagrid1.DataGridTable.DataTable
   myTable.AddOnRowChanged New System.Data.DataRowChangeEventHandler(AddressOf Me.myDataTable_Changed)    
End Sub

Private Sub myDataTable_Changed(ByVal sender As System.Object, ByVal e As System.Data.DataRowChangeEventArgs)
   Debug.Print "Row Changed", e.Action, e.Row.Item(datagrid1.CurrentCell.ColumnNumber)
End Sub

See Also

DataRowChangeEventArgs Members | System.Data Namespace | OnRowChanged | OnRowChanging | OnRowDeleting | DataRow | DataRowAction | DataRowChangeEventHandler | OnRowDeleted | DataTable