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?
Loading
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.
TomPosted Mar 22, 2012, 1:26 AM
check this article:
http://www.c-sharpcorner.com/UploadFile/f201d9/data-export-to-excel-and-create-group-report-in-net3/
Gohil JayendrasinhPosted Mar 20, 2012, 1:15 AM
hi
{{view.Sort = shortstring;}if it's helpful to you then please check Accepted Asnwers
Thanks
Jignesh TrivediPosted Mar 20, 2012, 12:56 AM
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.