griddata paging question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a gridview that has a datatable bound to it as its datasource. This
data table is created by calling a stored procedure that returns all the rows
that are to be displayed.
I'm having trouble getting paging to work.

How do I use the pageIndexChanging event in this case?

I want to do something like this (this is how I would do it for a datagrid)...

DataGrid1.CurrentPageIndex = e.NewPageIndex;
DataGrid1.DataBind();

but this doesn't seem to work.

Whats the best way to do paging when I have bound to a datatable that
contains all the rows that I require to display but only 10 at a time?
 
Back
Top