System.Web
2.0.0.0
System.ComponentModel.CancelEventArgs
The class is used in the method to provide access to the business object instance after any data operations that are using the control and business object are performed, but before the business object is destroyed. The business object is accessed using the property. By adding a delegate to handle the event, you can access any publicly exposed members of the business object to perform any final work or clean up.
The method is not called by the control, if the method that performs data operations is a static method. No business object instance is created when the method is static.
The control exposes many events that you can handle to work with the underlying business object at various times in its lifecycle. The following table lists the events and the associated classes and event handler delegates.
-
Event
EventArgs
EventHandler
-
.
Occurs immediately before the instance of the business object is created.
-
.
Occurs immediately after the instance of the business object is created.
-
.
Occurs before the data is retrieved.
-
, , and .
Occur before an insert, update, or delete operation is performed.
-
Occurs after the data is retrieved.
-
, , and .
Occur after the insert, update, or delete operation is completed.
-
.
Occurs before a business object is destroyed.
Provides data for the event of the control.
Constructor
To be added.
Initializes a new instance of the class using the specified object.
The business object with which the interacts to perform data operations.
2.0.0.0
Property
System.Object
To be added.
If the data operation methods (, , , and ) are instance methods, an instance of the business object is created before the method is executed. You can prevent the business object from being created for each call by saving the object in the property in the event handler. In subsequent events, you can retrieve the business object from the property.
Gets an object that represents the business object with which the control performs data operations.
2.0.0.0