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 the difference between Response.Expires and Reponse.ExpiresAbsolute?
Explain how to call the sql commands asynchronously in ado.net version 2.0?
What is the functionality of data provider in ado.net?
What are the parameters that control most of connection pooling behaviors?
What are the key features of ado.net?
What is bubbled event?
What is different between sqlcommand object and command behavior object?
Describe datareader object of ado.net with example.
How do I delete a row from a DataTable?
What are the advantages of using datalist?
Define data adapter?
What is the executescalar method?
How do you implement locking concept for dataset?
What are dcl commands?
How to bind the controls(best practice) comboboxes to the data in the dataset?