Solved

data set reverse

Posted on 2003-12-08
2
223 Views
Last Modified: 2012-06-27
i have a dataset that is populated from an xml file then the data is displayed in a datagrid does any one know how to reverse the data set the reason being that the intems in the xml and dataset are date ordered thus i want the latest date first

thanks in advance
0
Comment
Question by:andrew67
2 Comments
 
LVL 20

Accepted Solution

by:
TheAvenger earned 125 total points
Comment Utility
By reverse do you mean to sort them somehow, e.g. by date? How do you use the table?

If you want to sort the data and you want to show in a datagrid, then use a DataView between the table and the DataGrid. Then in the DataView set the Sort property to the column you want to sort after, e.g.:
dataView1.Sort = "StartDate DESC";
or
dataView1.Sort = "StartDate";
0
 
LVL 3

Author Comment

by:andrew67
Comment Utility
great thanks i will try it
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now