Raises the CancelCommand event. This allows you to provide a custom handler for the event.
Assembly: System.Web (in System.Web.dll)
Use the method to provide a custom handler for the CancelCommand event.
Text is not HTML encoded before it is displayed in the DataGrid control. This makes it possible to embed script within HTML tags in the text. If the values for the control come from user input, be sure to validate the values to reduce security vulnerabilities.
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.Notes to Inheritors
When overriding in a derived class, be sure to call the base class's method.
For more information about handling events, see Consuming Events.