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

What is the full form of ado?

646


Is ado.net dead?

678


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

691


What is ole in excel?

646


What is executequery?

624






What are all the classes that are available in System.Data Namespace?

709


What is ole db query?

690


What are the several execute methods of ado.net?

630


What are the advantages of oledb compared with other classes?

2491


What are the parameters that control most of connection pooling behaviours?

735


What is oledb connection?

649


What is two way data binding android?

652


Which control of the BindingNavigator returns the current position within the data source?

854


Which object is used to add relationship between two Datatables?

723


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

684