Click here to Skip to main content
15,904,416 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
Pls Explain with example for the following question using C#

1)difference between RowDeleteing and RowDeleted
2)difference between PageindexChanging and PageindexChanged.
Posted
Comments
nagendrathecoder 9-May-12 6:43am    
Seems to be an interview question.

RowDeleting Occurs when a row's Delete button is clicked, but before the GridView control deletes the row.

RowDeleted Occurs when a row's Delete button is clicked, but after the GridView control deletes the row.


PageIndexChanging Occurs when one of the pager buttons is clicked, but before the GridView control handles the paging operation.

PageIndexChanged Occurs when one of the pager buttons is clicked, but after the GridView control handles the paging operation.

ref:
http://msdn.microsoft.com/en-us/library/hf8xwy0t.aspx[^]
 
Share this answer
 
I think they are pretty self explanatory:

The RowDeleting event fires just before a row is about to be deleted. Once this row has been deleted, the RowDeleted event is fired.

The same goes for PageIndexChanging and PageIndexChanged events.

-Dom
 
Share this answer
 

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