System.Web 2.0.0.0 System.Web.UI.WebControls.ObjectDataSourceMethodEventArgs

The class is used in the method. Because it is derived from the class, the class provides access to input parameters for validation and manipulation through the property. The class also provides the property, which is used to check whether the currently executing data retrieval operation is retrieving a row count, in addition to the data. This is important because when data source paging is enabled, the event is raised twice. For more information, see .

The control exposes many events that you can handle to work with the underlying business object at various times in its life cycle. The following table lists the events and associated classes and event handler delegates.

Event

EventArgs

EventHandler

.

Occurs immediately before the business object is instantiated.

.

Occurs immediately after the business object is instantiated.

.

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.

  The parameter is an collection of name/value pairs that match those in the method signature and are passed by reference.

  Initializes a new instance of the class.

  An of objects.
  A that specifies which additional data-related operations the should perform on a results set, such as sorting the data or returning a specific subset of data.
  2.0.0.0
- Property
  System.Web.UI.DataSourceSelectArguments To be added.

  Data-bound controls use the class to request that the object perform additional data-related operations on a results set, such as sorting the data or returning a specific subset of data. These data-related operations are enumerated by the enumeration. The property is read-only, so you can examine, but not change, the arguments that are passed by the data-bound control. For more information, see .

  Provides a mechanism that the object can use to request data-related operations when data is retrieved.

  2.0.0.0
- Property
  System.Boolean To be added.

  When the object is performing data retrieval and data source paging is enabled, the data retrieval method is called twice:

  Once to retrieve the set of data.

  Once to retrieve a total row count.

  This raises the event twice. For code that handles the event, it might be important to determine the nature of the event (retrieving data or retrieving row count) so that any additional work that is performed by the handler is not unnecessarily duplicated for every data retrieval operation that is performed.

  Gets a value indicating whether the is retrieving a row count during a data retrieval operation.

  2.0.0.0