• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 701
  • Last Modified:

dataset table sort in asp.net

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
dshi15
Asked:
dshi15
2 Solutions
 
KimpzorCommented:
Here is a very good solution to your problem

http://www.4guysfromrolla.com/webtech/010704-1.shtml
0
 
Praveen VenuTechnical Project ManagerCommented:
ds.Tables("Customers") .DefaultView.Sort ="firstname"
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now