DataSet sorting

.net, asp.net, c#, dataset, sorting

Solution

you can still access the DataTable from the the data set as follows,

ds.Tables[0].DefaultView.Sort =" criterian";

Hope this helps.

Problem

In `DataTable` I could sorting with ``` dataTable.DefaultView.Sort = "SortField DESC"; ``` I'm getting a `DataSet` from database, I was wondering could I do a sorting on the `DataSet` like how I do it in `DataTable`.

Original source