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
Does executenonquery return a value?
How can we perform transactions in .net?
Define partial class?
What is a string variable?
differance between ADO vs ADO.Net?
how you will deal result set? How do you sort a dataset?If a dataset contains 100 rows, how to fetch rows between 5 and 15 only?
how Sequence to connect and retrieve data from database using dataset?
How to pass values into a datatable?
How to connect and retrieve data from database using dataset
What is difference between entity framework and ado.net?
Is ado.net dead?
What are the advantages of oledb compared with other classes?
What is ado.net in vb net?
What is ado oledb and odbc?
Does ado.net use odbc?