ComponentOne DataObjects for .NET
AfterUpdate Event (C1DataSetLogic)

C1.Data.2 Assembly > C1.Data Namespace > C1DataSetLogic Class : AfterUpdate Event
Fired after all changes in the data set are updated to the database.
Syntax
'Declaration
 
Public Event AfterUpdate As DataSetEventHandler
public event DataSetEventHandler AfterUpdate
Event Data

The event handler receives an argument of type DataSetEventArgs containing data related to this event. The following DataSetEventArgs properties provide information specific to this event.

PropertyDescription
The data set where the event has occurred.  
For an unsuccessful operation, information detailing the error.  
Success or failure status of the operation. In events occurring before operation and allowing to change the status argument, user code can change the status to indicate whether to proceed with the operation, skip or abort it.  
Returns the table collection of the data set. Use this property to gain access to table data in 3-tier configuration, where the DataSet argument is not set because it resides on the client and the event is fired on the server.  
Returns the table view collection of the data set. Use this property to gain access to table view data in 3-tier configuration, where the DataSet argument is not set because it resides on the client and the event is fired on the server.  
Remarks
The AfterUpdate event is fired after the update process is completed or skipped, regardless of whether it was successful or failed. The success status of the update process is passed to the event in the Status argument. The Status argument can also be modified by the event code to make C1DataObjects ignore an error, or vice versa, to make the update fail.

Among its possible uses, this event allows to control the whole data set (via its Tables argument) sent back to the client for refreshing updated rows, see Changing Data as a Result of Update (Refresh).

See Also

Reference

C1DataSetLogic Class
C1DataSetLogic Members
C1ExpressConnection Class
Controlling the Update Process