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 an ADO.Net?

650


What is a non query?

590


Difference between sqlcommand and sqlcommandbuilder?

656


how can implement dropdownlist in particular of dataset when try to update?

2390


how we can fire event in databound coulm in datagfrid withot using button?

651






How to add an aggregate column?

628


What is the difference between an ADO.NET Dataset and an ADO Recordset?

644


How to create data relations?

628


What is the difference between typed and untyped dataset?

590


What is the use of sqldatareader class?

554


Some important instruction regarding ADO.NET connection string ?

628


What is the default timeout specified for "sqlcommand.commandtimeout" property?

628


Why do we use sqldataadapter?

577


What is aggregate root?

580


Why do we serialize data?

594