DataRowChangeEventArgs.Action Proprietà

Definizione

Ottiene l'azione eseguita su un oggetto 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

Valore della proprietà

Uno dei valori di DataRowAction.

Esempio

Nell'esempio seguente viene aggiunto un DataRowChangeEventHandler oggetto e la procedura per gestire l'evento quando viene modificata una riga.


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

Si applica a

Vedi anche