Search the web
Sign In
New User? Sign Up
developers-Heaven · Developers Heaven
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Fill a ListView with any Dataset, and perform sorting by a Column He   Message List  
Reply | Forward Message #23 of 33 |
Fill a ListView with any Dataset, and perform
sorting by a Column Header in Visual C# .NET
Overview
Data Loading using a DataSet

This article will show how to fill a ListView Control with the data loaded into a DataSet. You may use a DataSet bind it to a Grid Control to show the output of a query, but data binding of controls is not always the ideal method of accessing the data (You may encounter problems with the DataBinding). A DataSet maintains a copy of the entire resultset in the client systems memory in case you need to make changes to a row. Instead of using a bound grid and a DataSet, we can use the listview control with the view set to details mode and fill it with the data from a DataSet.

Sorting the ListView
When you are working with the ListView control, you may want to sort its contents based on a specific column. An example of this kind of functionality occurs in a Windows Explorer program when you view the contents of a folder on your hard disk. In Details view, Windows Explorer displays information about the files in that folder. For example, you see the file name, the file size, the file type, and the date that the file was modified. When you click one of the column headers, the list is sorted in ascending order based on that column. When you click the same column header again, the column is sorted in descending order. read more... 
 
 
 
Our other free services:

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Sat Oct 18, 2008 2:05 pm

developers_hvn
Offline Offline
Send Email Send Email

Forward
Message #23 of 33 |
Expand Messages Author Sort by Date

Fill a ListView with any Dataset, and perform sorting by a Column Header in Visual C# .NET Overview Data Loading using a DataSet This article will show how to...
Developers Heaven
developers_hvn
Offline Send Email
Oct 18, 2008
2:05 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help