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
How to aggregating data across related tables?
What is difference between datagridview and datagrid control in winforms?
How to read data with the sqldatareader ?
What is a data control clerk?
What is ambient transaction?
How can you add or remove rows from the datatable object of dataset?
How can we check that some changes have been made to dataset since it was loaded?
What is ole db and odbc?
What are the key features of ado.net?
What are the ado.net objects?
What are the different methods available under the sqlcommand class to access the data?
Which is faster sqldataadapter and sqldatareader?
What is aggregating data ?
How would you connect to a database by using .NET?
Explain what are the steps to connect to a database?