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 return type of executescalar?
What are the ado.net connection pooling parameters?
What is ado in agriculture?
Explain executenonquery?
How to bind the controls(best practice) comboboxes to the data in the dataset?
What is a datareader object?
What are basic methods of dataadapter?
What are the parameters that control most of connection pooling behaviors?
What is disconnected scenario in entity framework?
What is a column variable?
What property must be set and what method must be called in your code to bind the data from some data source to the Repeater control?
Give an example that shows how to execute a stored procedure in ado.net?
What is difference between datagridview and datagrid control in winforms?
What does ado stand for?
How can we load multiple tables in to dataset?