How do you sort a dataset?

Answer Posted / anjali jain

Correct code must be like this:

DataView myView;
myView = ds.Tables("Customers").DefaultView;
myView.Sort = "<field-name> DESC";

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the domain object?

547


What “beforFilter()”,“beforeRender” and “afterFilter” functions do in Controller?

549


What is NonActionAttribute ?

593


explain how you can load related entities in ef (entity framework)?

544


Mention some action filters which are used regularly in ASP.Net MVC?

546






Can we add constraints to the route? If yes, explain how we can do it?

734


Which version of the common language runtime (clr) does the .net framework 3.0 use?

567


What is the .net framework and how does it work?

559


What is the use of the default route?

604


What is iobjectset? : Entity framework

589


Explain JSON Binding?

621


How do I use partial view?

533


What are the advantages of asp.net mvc?

563


What is object service? : Entity framework

635


What are the benefits of .net framework?

565