Initializes a new instance of the DataRowChangeEventArgs class.
[Visual Basic] Public Sub New( _ ByVal row As DataRow, _ ByVal action As DataRowAction _ ) [C#] public DataRowChangeEventArgs( DataRow row, DataRowAction action ); [C++] public: DataRowChangeEventArgs( DataRow* row, DataRowAction action ); [JScript] public function DataRowChangeEventArgs( row : DataRow, action : DataRowAction );
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
DataRowChangeEventArgs Class | DataRowChangeEventArgs Members | System.Data Namespace | OnRowChanged | OnRowChanging | OnRowDeleting | DataRow | DataRowAction | DataRowChangeEventHandler | OnRowDeleted | DataTable