Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataRowChangeEventArgs::Action Property

 

Gets the action that has occurred on a DataRow.

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

public:
property DataRowAction Action {
	DataRowAction get();
}

Property Value

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
Return to top
Show:
© 2017 Microsoft