Sort DataSet

S

shapper

Hello,

I have a DataSet with a DataTable that has 2 columns: Level and
LevelName

I want to sort the rows ascending using Level values.

How can I do this?

Thanks,
Miguel
 
G

Guest

DataTables al have a DefaultView that sports a handy Sort property that you
can set. Then you use the View instead of the DataTable.
Peter
 
S

sloan

You can also do a "No Filter" select



myDS.Tables[0].Select("" , "EmpLastName DESC");

which returns an array of DataRows I believe

the set of empty quotes is the filter.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,244
Latest member
cryptotaxsoftware12

Latest Threads

Top