• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 548
  • Last Modified:

Array of DataRows to DataTableReader

I am performing searches on datatables using the select command. I am aware that this will return an array of datarows.
What is the easist was of putting this info into a datatablereader? Or if possible perform a search on the datatable to return a datatablereader straight off?
1 Solution
Gautham JanardhanCommented:
what does it mean? is it data reader
If you can get the Array of DataRows...why do you need the DataReader?
Very Confusing describe in detail
fred2k3Author Commented:
gauthampi for a definition of a DataTableReader: http://msdn2.microsoft.com/en-us/library/system.data.datatablereader.aspx

I need to search information from within  a 'data set'.

The overall aim is to return an object which has inherited from the interface: IDataReader. That is why I am trying to return a DataTableReader.

Is this clearer?
This feature is not there in 1.1 Ver but i guess is available in 2.0...you could do something like this

Dim dtr As DataTableReader = ds.Tables(0).GetDataReader

Take a look at the below url for more new DataSet Features in ADO.Net 2.0

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

7 new features that'll make your work life better

It’s our mission to create a product that solves the huge challenges you face at work every day. In case you missed it, here are 7 delightful things we've added recently to monday to make it even more awesome.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now