Reputation: 1300
I'm trying to sort a datatable. But it's not working.
arr[0] = "name";
arr[1] = "DESC";
myDataSet.Tables["table1"].DefaultView.Sort = arr[0] + " " + arr[1];
Here, myDataSet
refers to dataset I'm using for the reportviewer.
Am I missing something? Is there any other way?
Upvotes: 0
Views: 3111