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 ???
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Jan 29, 2015, 4:47 AM EST
The output is:
mayur panditRank #4,868 · 321 reputationPosted Jan 29, 2015, 8:32 PM EST
DataView view = ds3.Tables[0].DefaultView;
view.Sort = "FINAL_RESULT DESC";
DataTable d1 = new DataTable();
d1 = view.ToTable();
ds3.Reset();
ds3.Tables.Add(d1);