DataRowChangeEventArgs Constructor (DataRow^, DataRowAction)
.NET Framework (current version)
Initializes a new instance of the DataRowChangeEventArgs class.
Assembly: System.Data (in System.Data.dll)
Parameters
- row
-
Type:
System.Data::DataRow^
The DataRow upon which an action is occuring.
- action
-
Type:
System.Data::DataRowAction
One of the DataRowAction values.
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
.NET Framework
Available since 1.1
Available since 1.1
Show: