asp.net.ph

GridView.SelectedIndexChanged Event

System.Web.UI.WebControls Namespace   GridView Class


.NET Framework version 2.0

Occurs when any of the select buttons in a GridView control is clicked, but after the page has changed.

[ VB ]
Public Event SelectedIndexChanged As EventHandler

[ C# ]
public event EventHandler SelectedIndexChanged;

[ C++ ]
public: __event EventHandler* SelectedIndexChanged;

In [ JScript ], you can handle the events defined by a class, but you cannot define your own.

Remarks

The SelectedIndexChanged event is raised whenever any of the select buttons in a GridView control is clicked, but after the GridView handles the paging 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.

NOTE: This event is not raised when the SelectedIndex property is set programmatically.

See Also

GridView   SelectedIndexChanging Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note