Asp.Net News
Free Tech Magazines
Asp.Net Web Hosting
Suggest Us
Link to Us
Feeds Subscription
Questions & Answers
Tips & Tricks
 The GridView 'grvProvinces' fired event PageIndexChanging which wasn't handled.
Posted by songuku on  11/18/2010 12:08:54 AM Category: ADO.NET
Add to my favorites
Email to friend
Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): The GridView 'grvProvinces' fired event PageIndexChanging which wasn't handled.]
System.Web.UI.WebControls.GridView.OnPageIndexChanging(GridViewPageEventArgs e) +1325546
System.Web.UI.WebControls.GridView.HandlePage(Int32 newPage) +86
System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +464
System.Web.UI.WebControls.GridView.RaisePostBackEvent(String eventArgument) +207
System.Web.UI.WebControls.GridView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

Post Your Reply Post New Question

 Viewer's Reply
Handling PageIndexChanging Event
Answered By Moderator1 on 11/18/2010 8:05:55 AM

You need to handle PageIndexChaning Event for the GridView control. Follow the below syntax,

protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)

gridview paging
Answered By songuku on 11/18/2010 11:39:28 PM
Hi ! can you help me ?
gridview paging
Answered By songuku on 11/19/2010 12:00:45 AM
can you send to me source code about gridview paging ? thank
Post Your Reply If you still have problem, post it again under this reply for better response.

Sponsored by
Integrating Silverlight 4 with SharePoint 2010 - Free 42 Page Sample Chapter
The Art & Science of JavaScript - Free 100 Page Preview!
Take Advantage of Oracle's 2 Day DBA Course