If a dataset contains 100 rows, how to fetch rows between 10
and 20 only ?
Answer Posted / suresh jayaraman
for(int
RowsCount=1;RowsCount<dataset.rows.count;RowsCount++)
{
if(RowsCount>10 && RowsCount<20)
{
//if you GirdView or DataGrid
Gridview1.DataSource=dataset;
GridView1.DataBind()
}
}
| Is This Answer Correct ? | 8 Yes | 4 No |
Post New Answer View All Answers
Is it possible to edit data in Repeater control?
List all the steps in order, to access a database through ado.net?
What is the difference between SqlCommand and SqlCommandBuilder?
What is dataset and datatable in ado.net?
What is the maximum pool size in ado.net connection string?
What is the procedure to call a Stored Procedure of Back End in ADO (ActiveX Data Object) and RDO (Remote Data Objects)?
What is difference between connected and disconnected architecture in ado.net?
How will you fill the gridview by using datatable object at runtime?
What is sqldatasource?
What is the difference between statement and preparedstatement interface?
What does executequery return?
What is difference between dataset and datatable?
Compare Data Reader & Dataset in ado.net?
The answers which posted above is not satisfied my requirement? Can some one post teh exact answer? Thanx
What is an ado?