System.Web
2.0.0.0
System.ComponentModel.CancelEventArgs
The control raises the event when a Delete button is clicked, but before the control deletes the record. (A Delete button is a button control whose CommandName property is set to "Delete".) You can perform a custom routine whenever this event occurs, such as canceling the delete operation.
A object is passed to the event handler. This enables you to determine the index of the row being deleted and to cancel the delete operation. To cancel the delete operation, set the property of the object to true. You can also manipulate the and collections before the values are passed to the data source.
For more information about how to handle 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.
The following table shows the initial property value for an instance of .
-
Property
Initial value
-
The value of the parameter.
This constructor is primarily used by control developers when they raise events.
Initializes a new instance of the class.
2.0.0.0
Property
System.Collections.Specialized.IOrderedDictionary
To be added.
When the property of a control is set, use the property (dictionary) to get the value of the primary key or keys of the row to delete.
To get the values of the non-key fields, use the property.
The dictionary is automatically populated with the name/value pairs of the field or fields specified in the property. If multiple fields form the primary key, a separate entry is added to the dictionary for each key field.
To determine the name of a key field, use the property of a object in the dictionary. To determine the value of a key field, use the property.
Gets a dictionary of field name/value pairs that represent the primary key of the row to delete.
2.0.0.0
Property
System.Int32
To be added.
The row index is frequently used to retrieve the specified row from the collection of the control. You can then access the row's properties.
Gets the index of the row being deleted.
2.0.0.0
Property
System.Collections.Specialized.IOrderedDictionary
To be added.
The property is automatically populated with the name/value pairs of the non-key fields for the row. To determine the field name of an entry, use the property of a object in the dictionary. To determine the value of an entry, use the property.
The primary key field or fields are not included in this dictionary. To access the values of the primary key field or fields, use the property.
Gets a dictionary of the non-key field name/value pairs for the row to delete.
2.0.0.0