GridView paging while iframe is there inside the gridview
<p>I am having an ASP.Net(ASP.Net 4.0) GridView control which is having an Iframe inside it and this iFrame is showing pdf pages with it. Everything is working as expected, but when I am enabling the Paging with the gridview, then it is showing the following error:-</p>

<hr>

<h2>The GridView 'GridView1' fired event PageIndexChanging which wasn't handled.</h2>

<p>*The above error is coming when I am clicking the paging else it is only showing me the first page without any issue.</p>

<p>To resolve the above error, I then put the following code:-</p>

<pre><code>Protected Sub GridView1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GridView1.PageIndexChanging
    GridView1.PageIndex = e.NewPageIndex    
End Sub
</code></pre>

<p>But, now the paging works, but it always shows the first page with all the paging.</p>

<p>Then I altered the above code with the following code:-</p>

<pre><code>Protected Sub GridView1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GridView1.PageIndexChanging
     GridView1.PageIndex = e.NewPageIndex
     GridView1.DataBind()
End Sub
</code></pre>

<p>But now, it shows the first page when the gridview loads but it shows nothing with the paging.</p>

<p>Please let me know where the issue is and oblige me thereby.</p>
