System.Web 2.0.0.0 System.ComponentModel.CancelEventArgs

The control raises the event when a Select button (a button with its CommandName property set to "Select") is clicked, but before the control handles the select operation. This allows you to provide an event-handling method that performs a custom routine, such as canceling the selection operation, whenever this event occurs.

A object is passed to the event-handling method, which allows you to determine the index of the row selected by the user and to indicate that the selection operation should be canceled. To cancel the selection 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.

  Because the event occurs before the control performs the select operation, the property of the control cannot be used to determine the index of the new row selected by the user. The property still contains the index of the previously selected row. To determine the index of the new row selected by the user, use the property. You can also use this property to programmatically override the row index selected by the user by setting it to another value.

  Gets or sets the index of the new row to select in the control.

  2.0.0.0