how to sort data in dataset without dataview by descending o
how to sort numerical data by descending order in dataset without dataview and database query ???
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Jan 29, 2015, 9:47 AM
The output is:
mayur panditPosted Jan 30, 2015, 1:32 AM
DataView view = ds3.Tables[0].DefaultView;
view.Sort = "FINAL_RESULT DESC";
DataTable d1 = new DataTable();
d1 = view.ToTable();
ds3.Reset();
ds3.Tables.Add(d1);