System.Web 2.0.0.0 System.ComponentModel.CancelEventArgs The control raises the event when an Edit button (a button with its CommandName property set to "Edit") is clicked, but before the control enters edit mode. This allows you to provide an event-handling method that performs a custom routine, such as canceling the edit operation, whenever this event occurs. A object is passed to the event-handling method, which allows you to determine the index of the row being edited and to indicate that the edit operation should be canceled. To cancel the edit operation, set the property of the object 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 being edited. 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 or sets the index of the row being edited. 2.0.0.0