If a dataset contains 100 rows, how to fetch rows between 10
and 20 only ?
Answer Posted / muthu kumar
DataSet ds = new DataSet();
ds.Load(cmd.ExecuteReader(),
LoadOption.OverwriteChanges, "sample");
DataRow[] dr = ds.Tables[0].Select("id>1 and id<10");
for (int i = 0; i < dr.Length; i++)
{
Response.Write(dr[i][0].ToString()+"<br>");
}
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Is bulk insert faster than insert?
What do you mean by ‘batch updates’?
Which is better ole db or odbc?
What is a non query?
What is the default provider in ado.net?
What is the meaning of object pooling?
What does ado stand for in ado.net?
What is the role of data provider in ado.net?
Which is faster sqldataadapter and sqldatareader?
What are the different methods available under the sqlcommand class to access the data?
What is ado.net architecture?
Explain all the classes those are used for database connections between sql server and asp.net?
What is DataReader Object?
What are the classes in System.Data.Common Namespace?
What are the methods of XML dataset object?