DataRowChangeEventArgs.Action Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the action that has occurred on a DataRow.
public:
property System::Data::DataRowAction Action { System::Data::DataRowAction get(); };
public System.Data.DataRowAction Action { get; }
member this.Action : System.Data.DataRowAction
Public ReadOnly Property Action As DataRowAction
Property Value
One of the DataRowAction values.
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
Applies to
See also
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.