Answer Posted / kamalakannan.a
I think the above answer is correct.Another one method is
DataTable dt=new DataTable();
DataRow[] dr=dt.Select("Filter Expression","Sort
expression");
Here Sort expression is , for eg.Address is one of the
field in dt.
Then DataRow[] dr=dt.Select("","Address ASC");
But in this method is have the Datarow array.So you can use
another one method,I explain below.
DataView dv=new DataView(Datatable,Filter Exp,Sort
Exp,Dataviewrowstate)
Eg is
DataView dv=new DataView(dt,"","Address
ASC,DataViewVowState.CurrentRows);
Here we can copy this Dataview to datatable or use this
same dataview instead of datatable.
Kamal....
| Is This Answer Correct ? | 28 Yes | 3 No |
Post New Answer View All Answers
What is oledb driver?
Which is faster entity framework or ado.net?
What is execute scalar in ado.net?
What are the drawbacks of using ado.net?
Explian About DataAdapters
How do you merge 2 datasets into the third dataset in a simple manner?
What is the difference between the clone() and copy() methods of the dataset class?
What is dbcontext and dbset in entity framework?
How can I retrieve two tables of data at a time by using data reader?
What are the different namespaces used in the project to connect the database? What data providers available in .net to connect to database?
Which property is used to check whether a DataReader is closed or opened?
Why do we need ado.net?
What is an ado?
What connected data?
What is data relation?