System.Web.UI.WebControls.GridView.SelectedIndexChanged Event

Occurs when a row's Select button is clicked, but after the System.Web.UI.WebControls.GridView control handles the select operation.

Syntax

public event EventHandler SelectedIndexChanged

Remarks

The GridView.SelectedIndexChanged event is raised when a row's Select button is clicked, but after the System.Web.UI.WebControls.GridView control handles the select operation. This enables you to provide an event-handling method that performs a custom routine, such as updating a status label with the currently selected row, whenever this event occurs.

For more information about handling events, see Consuming Events.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0