title: how to allow paging on gridview with custom databinding in place ?
body: <p>I am a bit lost in concept how to implement what i want to do. </p>
  
  <p>I have a gridview, a checkboxlist. I bind the gridview on the page_load. Everytime user choose a checkboxlist, the gridview rebind as well. I have something like this now. This is not the actual code. Thanks so much.</p>
  
  <p>aspx page.</p>
  
  <pre><code>    &lt;asp:gridview allowpaging="true" pagesize="30" gridview&gt;
  </code></pre>
  
  <p>aspx.vb page</p>
  
  <pre><code>    page_load
  
      get datatable from database
      gridview.datasource = datatable
      gridview.databind()
  
      Sub checkboxlist_selectedindexchange
  
      dim selected = checkboxlist.selecteditem.tostring()       
      Dim selecteddatatable =  datatable.select(columns() = selected).copytodatatable()
  
      Sub gridview_Pageindexchanging
  
      gridview.pageindex = e.newpageindex
      gridview_databind()
  
      Sub gridview_databind()
  
      ?????????? 
  </code></pre>
  
  <p>So what do i put here in order to allow paging ? basically, I have 2 datatables in the above example. In the actual code, I have about 5 datatables with 4 checkboxlists. I can't use Datasource control. I need to do it in codebehind as all code already exists.</p>
  
  <p>Thanks.</p>