Datagrid simple question???

G

Guest

Dear all,

I have a we application which is collecting data from an SQL server database.
The application is calling a store procedure and return a dataset to be
application.
DAta in the dataset can be huge , more than 1000 records..

I would like to offer to my user the possibility to display for instance 25
records at a time and then having a Next and Previous function to display the
next 255 records.

How to do that kind of paging request ??

Thanks for your reply
Regards
serge
 
G

Guest

In addition, you also need code in DataGird_PageIndexChanged:

DataGrid.CurrentPageIndex = e.NewPageIndex;
DataGrid.DataSource = data_source_object;
DataGrid.DataBind();

HTH

Elton Wang
 
M

Mr Newbie

I forgot to mention that, thanks for pointing it out.

--
Best Regards

The Inimitable Mr Newbie º¿º

----------------------------------------
 

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

Similar Threads


Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top