Hi
I try to fill a combobox with a dataset. I see the data in the dataset, but when i try to bind this dataset with a combobox. The list is fill only whith this message "System.Data.Da taRowView". That was my code, can you help me.
Thanks!
Tr
'Create connection object
Dim strConnNorthwin d As String = "Provider=oraol edb.oracle;User Id=sigrem; " &
"Data Source=sigrem.m etis;password=a dminsigrem
Dim cnPubs As OleDbConnection = New OleDbConnection (strConnNorthwi nd
Dim PubsDA As New OleDbDataAdapte r("SELECT * FROM Projet", cnPubs
Dim dsAuthors As New DataSe
PubsDA.Fill(dsA uthors, "Projet"
Dim dvAuthors As DataView = dsAuthors.Table s("Projet").Def aultVie
With cboPub
.DataSource = dvAuthor
.DisplayMember = "NoProjet
End Wit
'With lstTes
' .DataSource = dvAuthor
' .DisplayMember = "NomUsager
'End Wit
'cboPubs.Select edIndex = -
'cnPubs.Dispose (
'PubsDA.Dispose (
Catch ex As Exceptio
MsgBox(ex.Messa ge, MsgBoxStyle.Inf ormation, Me.Text
End Try 2 2693
Hi Antoine,
I don't see direct something, however the most change you have is that
"NoProjet" is not the name in the datatabel, it is case sensetive you know.
Did you know that those "with" statements are seldom used here anymore in
this newsgroup.
It's your choise of course, however for the typed characters you do not have
to do it, there are now more characters than without it.
However that was not the question, I hope the first sentence helps you.
Cor
Are you sure the datacolum names are correct? This is oftne the problem.
"Antoine" <an*******@disc ussions.microso ft.com> wrote in message
news:5F******** *************** ***********@mic rosoft.com... Hi,
I try to fill a combobox with a dataset. I see the data in the dataset,
but when i try to bind this dataset with a combobox. The list is fill only
whith this message "System.Data.Da taRowView". That was my code, can you
help me. Thanks!!
Try
'Create connection objects Dim strConnNorthwin d As String =
"Provider=oraol edb.oracle;User Id=sigrem; " & _ "Data Source=sigrem.m etis;password=a dminsigrem" Dim cnPubs As OleDbConnection = New
OleDbConnection (strConnNorthwi nd) Dim PubsDA As New OleDbDataAdapte r("SELECT * FROM Projet",
cnPubs) Dim dsAuthors As New DataSet PubsDA.Fill(dsA uthors, "Projet") Dim dvAuthors As DataView =
dsAuthors.Table s("Projet").Def aultView With cboPubs .DataSource = dvAuthors .DisplayMember = "NoProjet" End With 'With lstTest ' .DataSource = dvAuthors ' .DisplayMember = "NomUsager" 'End With 'cboPubs.Select edIndex = -1 'cnPubs.Dispose () 'PubsDA.Dispose () Catch ex As Exception MsgBox(ex.Messa ge, MsgBoxStyle.Inf ormation, Me.Text) End Try This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Suresh Tri |
last post by:
Hi all,
I am interested in extracting the class or jar files which are stored
as java stored procedures in Oracle. But I want to know if these are
stored as references to external files in Oracle database or directly
inside the database. In case if it is directly stored inside the
database is there any way to extract it?. If I can extract these java
files, can these be used in non Oracle applications?
Please help,
|
by: Seung Y. Kim |
last post by:
Hi everyone.
I am having a big performance issue with my ASP application with
Oracle database.
The application itself is a very database-generic one, so I can switch
from Access to SQLServer to Oracle with ease.
The web-application runs great with Access and SQLServer. But when it
comes to Oracle, the performance really lags.
|
by: Daisy |
last post by:
Download Oracle Data Provider for .NET
(http://otn.oracle.com/tech/windows/odpnet/index.html)
today to empower your .NET applications with the Oracle
Database!
Try out the new features for XML support like:
- Store XML data natively in the database server
as the Oracle database native type, XMLType.
- Access relational and object -relational data
|
by: Daisy |
last post by:
To empower your .NET web services with the Oracle
Database, download Oracle Data Provider for .NET (ODP.NET)
from : http://otn.oracle.com/tech/windows/odpnet/index.html
Try out the new features for XML support like:
- Store XML data natively in the database server as the
Oracle database native type, XMLType.
- Access relational and object -relational data as XML
data from an Oracle database instance into Microsoft .NET
|
by: Hai Ly Hoang \(MT00KSTN\) |
last post by:
Hi,
I'm an Oracle newbie. I've just created a table in Oracle with CREATE TABLE.
Now, in C#, how to connect to database and get my table ?
Thanks
| |
by: ´ï´ï |
last post by:
How to connect asp.net with Oracle Database?
Where and How to? Thanks very much.
|
by: Mark Brown |
last post by:
I'm trying to access an Oracle database vb.net. I found several examples.
I tried following each one, but I get the same error no matter what I try.
I don't really understand what the error means (I've never tried accessing
an Oracle database before). The error I get is:
ORA-12514: TNS:listener does not currently know of service requested in
connect descriptor
I installed the oracle dll and added it as reference (I get the same error...
|
by: Reedsp |
last post by:
Version: MSAccess 2003 SP2
Explination: I have a database that connects to an oracle database. I have setup an ODBC connection under the System DSN tab in the ODBC Source Administrator. The first time I go to a form that has fields from the oracle table, the "Oracle ODBC Driver Connect" window appears, as it should. Once I type in the password and continue with the database, that window never appears again. If I enter the password in...
|
by: Jack |
last post by:
Training Classes for Oracle10g, 9i, 8i
Certification training in Oracle10g and 9i: DBA, Developer,
Discoverer. training conducted at your location worldwide. Courseware
licensing also available.
http://a.uuload.com/Oracle-Database.htm
Unlock the Value of Your IT System
Confio Software's Ignite for Oracle uses wait-event analysis to
improve database performance by 65% or more. Gain visibility of every
Oracle wait event. Download free...
|
by: Winder |
last post by:
Training Classes for Oracle10g, 9i, 8i
Certification training in Oracle10g and 9i: DBA, Developer,
Discoverer. training conducted at your location worldwide. Courseware
licensing also available.
http://a.uuload.com/Oracle-Database.htm
Unlock the Value of Your IT System
Confio Software's Ignite for Oracle uses wait-event analysis to
improve database performance by 65% or more. Gain visibility of every
Oracle wait event. Download free...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |