You can see this error when you are populating a Gridview with code, and you enabled the Paging Property of the Gridview without implementing the PageIndexChanging Event.
So when you click the next Page in the Gridview you will see this error:
To avoid this issue simply write this code in the PageIndexChanging Event:
So when you click the next Page in the Gridview you will see this error:
"The GridView 'MyGridview' fired event PageIndexChanging which wasn't handled."
To avoid this issue simply write this code in the PageIndexChanging Event:
MyGridview.PageIndex = e.NewPageIndex;
MyGridview.DataBind();
Thank's amr for this helpful snippet, it is really a cool, thanks alot :)
ReplyDeleteThank you guru...really easy
ReplyDelete