Solved

dataset table sort in asp.net

Posted on 2008-10-08
2
683 Views
Last Modified: 2008-11-14
Hi Expert,

I have a  DataSet with a table that has data in it.

 ds.Tables("Customers")

I used storeprocedure to populate table, how I can sort table by a variable? for example, I have first name, last name field.

Thanks in advance.
0
Comment
Question by:dshi15
2 Comments
 
LVL 2

Accepted Solution

by:
Kimpzor earned 250 total points
ID: 22672811
Here is a very good solution to your problem

http://www.4guysfromrolla.com/webtech/010704-1.shtml
0
 
LVL 15

Assisted Solution

by:Praveen Venu
Praveen Venu earned 250 total points
ID: 22948125
ds.Tables("Customers") .DefaultView.Sort ="firstname"
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

856 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