manual gridview paging
<p>i'm am pulling 10 out of 100 records back from the database and placing into gridview (no datasource objects here). </p>

<p>how do i enable paging that comes with the gridview? I know the total records is 100 can I use that somehow to activate the paging?</p>

<p>I know I can do this easily with DataSource objects but was just wondering if I could do it completely manually as far as the GridView is concerned.</p>

<p><strong>Markup</strong></p>

<pre><code>&lt;form id="form1" runat="server"&gt;
&lt;div&gt;

    &lt;asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AllowSorting="True" onpageindexchanging="GridView1_PageIndexChanging" 
        onsorting="GridView1_Sorting"&gt;
    &lt;/asp:GridView&gt;

&lt;/div&gt;
&lt;/form&gt;
</code></pre>

<p>Code-behind</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
{
    GridView1.DataSource = GetCustomers();
    GridView1.DataBind();
}
</code></pre>

<p><strong>strong text</strong></p>
