Determines whether an event for the ListView control should be handled.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
The method is used by the ListView control to optionally handle events that are passed up through the control hierarchy. It determines whether to handle an event by examining the properties of the EventArgs object that are contained in the e parameter. When an event must be handled, the method performs the appropriate action. Other events are ignored and passed up the control hierarchy. The return value of this method indicates whether to handle the event or to pass the event up the control hierarchy.
The ListView control overrides the base implementation of this method to perform the appropriate action when one of the buttons that is recognized by the control is clicked. The following table lists the buttons that the ListView control recognizes.
Cancels an edit or insert operation. Raises the ItemCanceling event.
Sets the SelectedIndex property to the DisplayIndex property value for the item. Renders the SelectedItemTemplate template for the item. Raises the SelectedIndexChanging and SelectedIndexChanged events.
This version of the method returns true if one of these buttons raises an event that is handled by the control. For more information about event bubbling, see Events and Delegates.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2