Home C C++ Java Python Perl PHP SQL JavaScript Linux Online Test Forum

Home » Forum » x-Forum » Question

Fetch Particular rows from SQL

If a dataset contains 100 rows then how to fetch rows between 5 and 15?

Posted by Sherin 2019-05-19 22:17:27

for(int 
RowsCount=1;RowsCount<dataset.rows.count;RowsCount++)
{
if(RowsCount>10 && RowsCount<20)
{
//if you GirdView or DataGrid 
Gridview1.DataSource=dataset;
GridView1.DataBind()

}
}

C++ user image admin posted 2019-05-20 19:06:39

Please login to comment

Log In


Ask New Question