griddata paging question

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top