Advice on Paging records

S

Simone

Anyone does have an advice on paging records on a DataGrid to show max 20
records for page?

I want to fill a Datatable al max for 20 records each time.

My select is simlpe

SELECT * FROM TABLE WHERE .....

I have a SqlCeDataAdapter and a DataTable.
 
P

Peter Foot [MVP]

There is an override for the Fill method which takes a start index and
maximum number of records, which allows you to do this e.g.

Fill(ds, 0, 20, "MyTable")

Peter
 

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