GridView.SelectedIndexChanged Event
.NET Framework 3.0
Occurs when a row's Select button is clicked, but after the GridView control handles the select operation.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public: event EventHandler^ SelectedIndexChanged { void add (EventHandler^ value); void remove (EventHandler^ value); }
/** @event */ public void add_SelectedIndexChanged (EventHandler value) /** @event */ public void remove_SelectedIndexChanged (EventHandler value)
In JScript, you can handle the events defined by a class, but you cannot define your own.
Not applicable.
The SelectedIndexChanged event is raised when a row's Select button is clicked, but after the GridView control handles the select operation. This allows 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.
| Topic | Location |
|---|---|
| Walkthrough: Creating a Web Page to Display XML Data | Building ASP .NET Web Applications in Visual Studio |
| Walkthrough: Displaying an XML Document in a Web Forms Page Using Transformations | Building ASP .NET Web Applications in Visual Studio |
Community Additions
ADD
Show: