Hi friends,
Ques : I am working with a DataSet and want to be able to display and sorted data in different ways,Please explain in brief?
I am working with a DataSet
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Jignesh TrivediRank #16 · 50.3K reputationPosted Mar 19, 2012, 8:56 PM EDT
try..
DataSet myDataSet =new DataSet();
//Code to retrive data.
DataView myDataView = myDataSet.Tables["Table"].DefaultView;
myDataView.Sort = "Filed name";
This code sort data on filed name which is supplied.
hope this help.
Gohil JayendrasinhRank #490 · 5K reputationPosted Mar 19, 2012, 9:15 PM EDT
hi
if it's helpful to you then please check Accepted Asnwers
Thanks
TomRank #5,208 · 307 reputationPosted Mar 21, 2012, 9:26 PM EDT
check this article:
http://www.c-sharpcorner.com/UploadFile/f201d9/data-export-to-excel-and-create-group-report-in-net3/