Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

If a dataset contains 100 rows, how to fetch rows between 10
and 20 only ?

Answer Posted / vaidyanathan r.

DataRow[] dr = new DataRow[10];
for(int i = 10 to 19)
dr[i] = DataSet1.Tables[<TableIndex>].Rows[i];

DataRow array dr contains Records between 10 and 20.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to aggregating data across related tables?

978


What is difference between datagridview and datagrid control in winforms?

957


How to read data with the sqldatareader ?

924


What is a data control clerk?

982


What is ambient transaction?

887


How can you add or remove rows from the datatable object of dataset?

968


How can we check that some changes have been made to dataset since it was loaded?

919


What is ole db and odbc?

860


What are the key features of ado.net?

1127


What are the ado.net objects?

892


What are the different methods available under the sqlcommand class to access the data?

1001


Which is faster sqldataadapter and sqldatareader?

874


What is aggregating data ?

912


How would you connect to a database by using .NET?

892


Explain what are the steps to connect to a database?

929