DataList, DataSet or DataTable rows limit

  • Thread starter Thread starter Aahz
  • Start date Start date
A

Aahz

Hello;

I have an XML file with data which I show in DataList sucessfully,
using DataSet
Problem is that XML has about 30 records which is too much I need to
show just first 10 ordered by date (10 newest)

I don't know how to do this.

Any help is highly appreciated

Thanks
 
Aahz,
this sounds like an ASP.NET question, so the c# group probably might not
have been the best place to post it.

To page a DataList, you would need to add a "pagerbar" control to it; the
DataList does not come with paging built-in as the DataGrid does.

Look around, I've seen a few implementation of the "Paging DataList".

Alternatively, you can filter and sort your dataset prior to binding to the
DataList.
--Peter

Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
 
Several cases
1) Use XSLT
2) Use DataTable.Select with aggregating function
Hello;

I have an XML file with data which I show in DataList sucessfully,
using DataSet
Problem is that XML has about 30 records which is too much I need to
show just first 10 ordered by date (10 newest)

I don't know how to do this.

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 

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

Access to DataList 1
DataSet & DataView 1
DataSet question? 1
xml and xml schema 4
DataSet vs DataTable 3
serialize DataSet and use WriteXml 0
Getting a datalist row 4
GridView Display 1

Back
Top