This topic has not yet been rated - Rate this topic

SqlCeRowUpdatedEventArgs Class

Provides data for the RowUpdated event.

System.Object
  System.EventArgs
    System.Data.Common.RowUpdatedEventArgs
      System.Data.SqlServerCe.SqlCeRowUpdatedEventArgs

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)
public sealed class SqlCeRowUpdatedEventArgs : RowUpdatedEventArgs

The SqlCeRowUpdatedEventArgs type exposes the following members.

  Name Description
Public method SqlCeRowUpdatedEventArgs Initializes a new instance of the SqlCeRowUpdatedEventArgs class.
Top
  Name Description
Public property Command Gets the SqlCeCommand executed when Update is called.
Public property Errors (inherited from RowUpdatedEventArgs)
Public property RecordsAffected (inherited from RowUpdatedEventArgs)
Public property Row (inherited from RowUpdatedEventArgs)
Public property RowCount (inherited from RowUpdatedEventArgs)
Public property StatementType (inherited from RowUpdatedEventArgs)
Public property Status (inherited from RowUpdatedEventArgs)
Public property TableMapping (inherited from RowUpdatedEventArgs)
Top
  Name Description
Public method CopyToRows(DataRow[]) (inherited from RowUpdatedEventArgs)
Public method CopyToRows(DataRow[], Int32) (inherited from RowUpdatedEventArgs)
Public method Equals (inherited from Object)
Protected method Finalize (inherited from Object)
Public method GetHashCode (inherited from Object)
Public method GetType (inherited from Object)
Protected method MemberwiseClone (inherited from Object)
Public method ToString (inherited from Object)
Top

The RowUpdated event is raised when an Update to a row is completed.

When using Update, there are two events that occur for each data row updated. The order of execution is as follows:

  1. The values in the DataRow are moved to the parameter values.

  2. The OnRowUpdating event is raised.

  3. The command executes.

  4. If the command is set to FirstReturnedRecord, then the first returned result is placed in the DataRow.

  5. The OnRowUpdated event is raised.

  6. AcceptChanges is called.

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)