GridView Paging inside a repeater
<p>I have a greidview nested within a repeater , And trying to enable paging on th e grid view without much success.</p>

<p>the gridview databound is like this</p>

<pre><code>&lt;asp:repeater....&gt; 
    &lt;asp:gridview id="GridView1" Datasource='&lt;%# LoadData(CInt(Eval("Id"))) %&gt;' 
         OnPageIndexChanging="GridViewPageIndexChanging" AllowPaging="true" 
PageSize="10" ............. &lt;/asp:GridView&gt;
&lt;/asp:repeater&gt;
</code></pre>

<p>In the code behind My loadData get a list of objects.</p>

<pre><code>Public Function LoadData(ByVal Id As Integer) As IList(Of Client)
            Dim ds As IList(Of Client) = client.GetClientById(Id)
            Return ds
        End Function
</code></pre>

<p>And the event handler is as follow:</p>

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

<p>My code doesn't change the page in the gridview , Am I missing something ?</p>

<p>Any help is very appreciate it.</p>
