Gridview PageIndex not changing on page_Load event
<p>I'm trying to change pageindex on page_Load event but its not working.
I can change page by clicking links in the page after page loaded.
If this info necessary GridView in UpdatePanel.</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
{
     /*...Some Codes...*/
     //I'm trying to change page like this.
     GridView1.PageIndex = Index;
     GridViewPageEventArgs ea = new GridViewPageEventArgs(GridView1.PageIndex);
     GridView1_PageIndexChanging(sender, ea);
}
protected void GridView1_PageIndexChanging(object sender,GridViewPageEventArgs e)
{
    GridView1.PageIndex = e.NewPageIndex;
}
</code></pre>
