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
Which provider is used to connect ms access, oracle, etc…?
How can we save all data from dataset?
Define partial class?
What is difference between ado.net and asp net?
Which database is the ado.net sql connection object designed for?
What is read only and forward only in ado.net?
What are dcl commands?
What are the ado.net components?
What are the difference between readonly vs. Const?
How will you fill the gridview by using datatable object at runtime?
What are the ado.net objects?
Give an example that shows how to execute a stored procedure in ado.net?
Define Execute Reader?
What is the difference between oledb sql server and oledbdotnet provider?
Why is it important to close an ado.net application?