Solved

data set reverse

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

813 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

14 Experts available now in Live!

Get 1:1 Help Now