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
Which object is used to add relationship between two Datatables?
Which architecture does Datasets follow?
If a table contains 20000 records. In a page at each time 100 records to be displayed.
Describe the command object and its method.
Why do we use sqldataadapter?
Explain executenonquery?
What are the essential features of ado.net?
Define Execute Scalar?
How would you connect to a database by using .NET?
Name which operations can you not perform on an ado.net dataset?
Which database is the ado.net sql connection object designed for?
What is untyped dataset?
Explain how to call the sql commands asynchronously in ado.net version 2.0?
What is basic use of data view?
What is Data view?