Solved

Array of DataRows to DataTableReader

Posted on 2006-10-23
5
501 Views
Last Modified: 2012-06-27
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?
0
Comment
Question by:fred2k3
5 Comments
 
LVL 29

Expert Comment

by:Gautham Janardhan
ID: 17793618
<<datatablereader
what does it mean? is it data reader
0
 
LVL 5

Expert Comment

by:rameedev
ID: 17793685
If you can get the Array of DataRows...why do you need the DataReader?
0
 
LVL 6

Expert Comment

by:MuhammadAdil
ID: 17793727
Very Confusing describe in detail
0
 

Author Comment

by:fred2k3
ID: 17794832
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?
0
 
LVL 5

Accepted Solution

by:
rameedev earned 500 total points
ID: 17801345
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

http://msdn2.microsoft.com/en-us/library/ms971494.aspx
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Reference issues in Visual Studio 3 41
Where did System.Data.Objects go? 2 40
Cant save 3D 4 22
C#.net split string and then check appropriate checkboxlist 4 26
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question