How do you sort a dataset?
Answers were Sorted based on User's Feedback
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 |
What is the difference between the value-type variables and reference-type variables in terms of garbage collection ?
Can a nested object be used in Serialization
What is routeconfig.cs in mvc 4?
How to use multiple submit buttons in asp.net mvc?
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?
What is the property available to check if the page posted or not
Can you explain renderbody and renderpage in mvc?
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?
What is the main difference between VS 2005 and VS 2003?
can we call the garbage collector to run explicicitly?
Why to use “{resource}.axd/{*pathinfo}” in routing in mvc?
What is the difference between using system.net and system.net.sockets?