Solved

dataset table sort in asp.net

Posted on 2008-10-08
2
677 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

743 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

8 Experts available now in Live!

Get 1:1 Help Now