Click here to Skip to main content
16,022,875 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
While deleting record from gridview and database,
it enters twice in RowDeleting event and hence 1st time it can delete the record properly but second time trows the exception- IndexOutOfRangeException as already the record is deleted...

Additional Info:
I Have used Updatepanel & the Grid view is in the update panel.
is it problem of update panel?
How to overcome this err???
Thanks
Posted
Updated 2-Mar-10 23:29pm
v2

1 solution

This is not the right and expected behavior!

It's your coding flaw in the application. Thus, In order to overcome it, you need to check your code base and see how the event is attached twice and thus executed twice.
 
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