System.Web 2.0.0.0 System.EventArgs

The class is used in the and methods to provide access to the business object instance before any data operations that are using the control and business object are performed. The business object is set and accessed using the property. By adding an event handler delegate to handle the event, you can create an instance of the business object in custom code instead of the performing the instantiation. This is useful when you want a non-default instance of your business object or to call a non-default constructor to create the instance; the always calls the default constructor to create an instance of the business object it works with. You can also add an event handler delegate to handle the event, which enables you to access any publicly exposed members of the business object to perform any additional initialization or work.

The and methods are not called by the control, if the business object method that performs the data operations 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.

, , .

Occur after the insert, update, or delete operation is completed.

.

Occurs before a business object is destroyed.

Provides data for the and events 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. To be added.

  Gets or sets an object that represents the business object with which the control performs data operations.

  2.0.0.0