Error in gridview when allowPaging = true - asp.net
<p>i have gridview in my asp.net webform.</p>

<p>i bind my database to gridview like this:</p>

<pre><code>SQL = "SELECT id,Fname,Lname FROM MEN";
dsView = new DataSet();
adp = new SqlDataAdapter(SQL, Conn);
adp.Fill(dsView, "MEN");
adp.Dispose();
GridView1.DataSource = dsView.Tables[0].DefaultView;
GridView1.DataBind();
</code></pre>

<p>and this i put in the gridview: <code>allowPaging = true</code></p>

<p>its show the data in the grid, but if i press to page 2..3.. </p>

<p>and i got this error:</p>

<pre><code>The GridView 'GridView1' fired event PageIndexChanging which wasn't handled. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Web.HttpException: The GridView 'GridView1' fired event PageIndexChanging which wasn't handled.
</code></pre>

<p>thanks in advance</p>
