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 DataReader Object?
What are the uses of Stored Procedure?
Which is faster entity framework or ado.net?
What is difference between sqldatareader and sqldataadapter?
How to check if the Dataset has records ?
what is the difference betwen typed dataset and untyped dataset?in general which dataset can we use in programming?
What is namespace in ado.net?
Define bubbled event?
How can we load multiple tables in a dataset?
Is bulk insert faster than insert?
What are the benefits of using of ADO.NET in .NET 4.0?
What is ado and rdo?
What is acid in ado.net?
Define ado.net?
What is disconnected data?