How do you sort a dataset?

Answers were Sorted based on User's Feedback



How do you sort a dataset?..

Answer / 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

How do you sort a dataset?..

Answer / vijay

ds.sort()

Is This Answer Correct ?    2 Yes 13 No

Post New Answer

More Dot Net Framework Interview Questions

What is the difference between the value-type variables and reference-type variables in terms of garbage collection ?

1 Answers  


Can a nested object be used in Serialization

1 Answers  


What is routeconfig.cs in mvc 4?

0 Answers  


How to use multiple submit buttons in asp.net mvc?

0 Answers  


When using razor views, do you have to take any special steps to protect your asp.net mvc application from cross site scripting (xss) attacks?

0 Answers  






What is the property available to check if the page posted or not

1 Answers  


Can you explain renderbody and renderpage in mvc?

0 Answers  


How the framework differentiate between 2 version dlls? eg Version 2.0 and 2.1 dlls are there. both are referred in the code.but we are using only name of that dll not the version number. in run time how the framework know which dll has to be referred?

1 Answers   Deloitte,


What is the main difference between VS 2005 and VS 2003?

5 Answers   CTS, Satyam,


can we call the garbage collector to run explicicitly?

6 Answers   Kanbay, Volvo,


Why to use “{resource}.axd/{*pathinfo}” in routing in mvc?

0 Answers  


What is the difference between using system.net and system.net.sockets?

1 Answers  


Categories