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
Define different execute methods of ADO.NET command object ?
What property must be set and what method must be called in your code to bind the data from some data source to the Repeater control?
What is ole db and odbc?
What is difference between executequery and executeupdate?
What is the role of clr?
Describe briefly an ADO.NET Dataset ?
What is disconnected scenario in entity framework?
What is the difference between an ADO.NET Dataset and an ADO Recordset?
What is ambient transaction?
What are all the different methods under sqlcommand?
What is ado control?
What is linq and entity framework?
What is defaultview in datatable?
What is the difference in record set and dataset?
What is the default timeout specified for "sqlcommand.commandtimeout" property?