0

I have set up EnableSortingAndPagingCallbacks="True" for a gridview and I don't have any template columns.

Paging works fine on all browsers without any errors but only few users ( not all IE8 users) of IE8 reported PageIndexChanging which wasn't handled error. Is it option settings issue on their browsers?

Thanks

Amarnath Balasubramanian
  • 9,300
  • 8
  • 34
  • 62
user228777
  • 3,082
  • 9
  • 33
  • 50

1 Answers1

0

Try to set OnPageIndexChanging event handler of your grid view like this

protected void gridView_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
   gridView.PageIndex = e.NewPageIndex;
   gridView.DataBind();
}
anouar.bagari
  • 2,084
  • 19
  • 30
  • No I shouldn't need to handle this event coz EnableSortingAndPagingCallbacks="True" shouldn't postback a page and that's how it works fine with most of the browsers,only few users of IE 8 reported the error. – user228777 Jun 08 '12 at 18:44
  • @user228777 are you binding the gridview to a custom datasource? – anouar.bagari Jun 08 '12 at 18:45
  • As I mentioned earlier everything is working fine on IE9 , IE8 and other browsers, only few users reported above error on IE 8, so it must be internet option settings?? – user228777 Jun 08 '12 at 18:55
  • I already saw that forum but not sure about the solution since it works fine on 98% of my users other than few IE8 uers – user228777 Jun 08 '12 at 19:00