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
What does executenonquery () method return?
How to work with disconnected data - the dataset and sqldataadapter?
How to find the given query is optimised one or not?
What are the connected and disconnected modes in ado.net?
How to add a javaScript function in a datagrid?
Which is the best method to get two values from the database?
What is the difference between the clone() and copy() methods of the dataset class?
What are disadvantages of microsoft-provided data provider classes in ado.net?
Which database is the ado.net sql connection object designed for?
What does ado stand for in ado.net?
Define connection string?
What is a data control clerk?
What is ado.net objects?
How can we load multiple tables in a dataset?
What are the data access namespaces in .NET?