with or without paging?
If it's without then just change your SQL command to say "Select Top 5...."
(assuming you are using SQL).
Otherwise turn on the page size to 5 :}
I cannot do it on the sql side as it is an xml that I am loading in the
datagrid and sorting it by date. i don't want to have multiple page to be
displayed.
Just want to display the most recent 5 ?
Probably not the most graceful solution but you can dump the XML into a
DataSet, then create a DataView of the DataSet containing the newest entries.
Or you could loop through the actual DataSet and remove all the rows except
the top 5.
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.