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.
 
Back
Top