473,385 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

OracleClient.OracleDataReader dataGrid

JM
Is there a way to load a DataGrid using an OracleClient.OracleDataReader? I've seen code where a SqlDataReader is used, but I get an error when trying to use an OracleDataReader.
Jul 21 '05 #1
1 3752
On WebForms you can, you just set the datasource to command.ExecuteReader.
On the desktop there isn't , at least not yet. You'll be able to in ADO.NET
2.0 - not doing you any good now but a very cool feature. The datatable
will have a .Load method which takes a datareader as a parameter and
populates the Datatable from it - I wrote a little about it
http://msmvps.com/williamryan/archiv.../14/10090.aspx here and it's
very cool.

For the time being, you're going to hvae to either bind to a datatable
(which isn't a bad thing even on the web b/c you may need some of the iList
features) or loop through your reader and build a datatable from it - since
adapters use DataReaders behind the scenes w/ Fill, you're not gaining much
and when you consider the maintenance burden - it's probably a raw deal.

HTH,

Bill

--
W.G. Ryan MVP Windows - Embedded

Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
Let Microsoft know!
https://www.windowsembeddedeval.com/...ity/newsgroups
"JM" <JM @discussions.microsoft.com> wrote in message
news:CA**********************************@microsof t.com...
Is there a way to load a DataGrid using an OracleClient.OracleDataReader? I've seen code where a SqlDataReader is used, but I get an error when trying
to use an OracleDataReader.

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Kevin Vogt | last post by:
When initially loaded, my web application (below) takes ~120000 milliseconds to open its connection. But repeated executions take 0 milliseconds each. But when I wait for approx. 5 minutes and try...
2
by: JJ | last post by:
Hi, I don't know if this is the correct newsgroup to post this question, but here goes. I have installed Visual Studio .Net Professional 2003. I checked the version and it is 7.1.3088. It...
7
by: RobertoP | last post by:
Hello all, I am trying to create an simple application that communicates with an Oracle DB, but the data returned by the OracleDataReader object contains random invalid characters. To be more...
1
by: Dan =o\) | last post by:
<as posted in the microsoft.public.dotnet.languages.adonet newsgroup> Hey guys, I'm stumped on this... Today I was asked to look into coverting our ODBC access to a Oracle database to the...
1
by: JM | last post by:
Is there a way to load a DataGrid using an OracleClient.OracleDataReader? I've seen code where a SqlDataReader is used, but I get an error when trying to use an OracleDataReader.
3
by: =?Utf-8?B?RFNJU3VwcG9ydA==?= | last post by:
I have an ASP.NET application runinng on IIS 5 .NET 1.1 Sp1 and recently we've been experiencing this error when the users are trying to print reports that connects to Oracle database. The only way...
4
by: =?Utf-8?B?RFNJU3VwcG9ydA==?= | last post by:
Hi, I have this ASP.NET application developed with VS.NET 2003 VB.NET and deplyed on Windows 2K server IIS 5. This application uses the following: - Oracle 10G databse - MS Data Access Block...
0
by: mikelis | last post by:
I've been having an issue with reader.getString truncating the output of Oracale DB table columns. The following is an example of the output where "RUNNING" gets truncated. This behavior is random...
0
by: =?Utf-8?B?Q2hhbmUgRw==?= | last post by:
We recently updated our web service from .Net 1.1 to .Net 2.0. Our web services are using the Oracle Client provided by Microsoft. We are now randomly getting the following error when accessing...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.