Solved

data set reverse

Posted on 2003-12-08
2
224 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

910 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

23 Experts available now in Live!

Get 1:1 Help Now