System.Web 2.0.0.0 System.ComponentModel.CancelEventArgs The control raises the event when the Cancel button (a button with its CommandName property set to "Cancel") is clicked, but before exiting edit mode. This allows you to provide an event-handling method that performs a custom routine, such as stopping the cancel operation if it would put the row in an undesired state, whenever this event occurs. A object is passed to the event-handling method, which allows you to determine the index of the row containing the Cancel button that raised the event and to indicate that the cancel operation should be stopped. To stop the cancel operation, set the property to true. For more information about handling events, see Consuming Events. For a list of initial property values for an instance of , see the constructor. Provides data for the event. Constructor To be added. Use this constructor to initialize a new instance of the class. The following table shows the initial property value for an instance of . Property Initial value The value of the parameter. This constructor is used primarily by control developers when raising events. Initializes a new instance of the class. 2.0.0.0 Property System.Int32 To be added. Use the property to determine the index of the row that contains the Cancel button clicked by the user. The row index is often used to retrieve this row from the collection of the control, which allows you to access the row's properties. Gets the index of the row containing the Cancel button that raised the event. 2.0.0.0