Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In which situation we have to use selected index changing, selected index changed event.

Can anyone clarify my doubt.
Posted
Updated 26-Jul-12 23:29pm
v2

Hi,

Just take the example of GridView and try to understand this:
The SelectedIndexChanging event is raised when a row's Select button is clicked, but before the GridView control handles the select operation. This allows you to provide an event-handling method that performs a custom routine, such as canceling the selection operation, whenever this event occurs.

The SelectedIndexChanged event is raised when a row's Select button is clicked, but after the 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.



--Amit
 
Share this answer
 
You will get all info on this page
Google
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900