?
Solved

data set reverse

Posted on 2003-12-08
2
Medium Priority
?
229 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 20

Accepted Solution

by:
TheAvenger earned 500 total points
ID: 9896159
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
ID: 9910552
great thanks i will try it
0

Featured Post

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

718 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