System.Web 2.0.0.0 System.ComponentModel.CancelEventArgs By adding an event handler delegate to handle the , , or events, you can perform any additional preprocessing required or cancel the database command entirely. Because the class is derived from the class, you can cancel a pending database command by setting the property to true. You can examine and manipulate the , collection, and other command properties prior to running the command by accessing the object exposed by the property. The class is used in the , , and methods to provide access to a database command before it is run. The control exposes many events that you can handle to work with the underlying data objects during the course of a data operation. The following table lists the events and associated and event handler classes, to better guide you to the various events that correspond to the lifecycle of a data operation using the control. Event EventArgs EventHandler occurs before the data is retrieved. , , occur before an insert, update, or delete operation is performed. , , , occur after the data retrieval, insert, update, or delete operations completes. Provides data for the , and events of the control. Constructor To be added. Initializes a new instance of the class, using the specified database command object. An object that represents the cancelable , , or command. 2.0.0.0 Property System.Data.Common.DbCommand To be added. You can handle the , , or event to examine and manipulate the properties of the before it is run by the control. The connection to the underlying data source is not yet open when the event handler delegate is called. Therefore, you cannot cancel the database operation by calling the method on the object directly. However, you can cancel the database operation by setting the property of the to true. Gets the pending database command. 2.0.0.0