Sort DataSet

  • Thread starter Thread starter shapper
  • Start date Start date
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
 
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
 
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

Find value in DataSet 3
GridView. What is wrong with my code? Thank You. 3
GridView Primary Key 2
Is it possible to reorder a dataset? 2
Dataset and datatable 7
dataset 2
DataSet to Generic List 1
DataSet 2

Back
Top