How to sort the data in Datatable

Answer Posted / narayansahu

pass the datatable in dataview object and call the sort
method on dataview
dataview dv=new dataview(dt)
dv.sort
that's it

Is This Answer Correct ?    17 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain all the classes those are used for database connections between sql server and asp.net?

577


Explain which name space is used to get assembly details?

571


Which object of ado contains datarow datacolumn collection?

572


What are the data providers in ADO.NET framework?

654


What are the types of databinding?

611






Which provider is used to connect ms access, oracle, etc…?

586


Define Execute Scalar?

620


What are the differences between OLEDB and SQLClient Providers?

628


Which one of the following objects is a high-level abstraction of the connection and command objects in ado.net?

646


Define the executescalar method?

577


What is the return type of executescalar?

548


How to perform sorting on a table in ADO.NET?

625


What are the steps you will take to improve performance? Will you use dataset or datareader?

613


What is meant by executenonquery?

589


What is command class in ado.net?

538