Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

data set reverse

Posted on 2003-12-08
2
Medium Priority
?
230 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 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applicationsā€¦
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Loops Section Overview
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased riskā€¦

926 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