473,397 Members | 1,960 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,397 software developers and data experts.

Filling a list box

I'm trying to fill a listbox...

------------------------------
Dim oC As New localhost.Service1
Dim oSR As System.IO.StringReader

oSR = New
System.IO.StringReader(oC.GetAllContacts(oELookup. CustomerNum,
oELookup.CustomerType))
oDS.ReadXml(oSR)
lbContacts.DataSource = oDS.Tables("Table").Rows
lbContacts.DisplayMember =
oDS.Tables("Table").Columns("CI_NAME").ToString
lbContacts.ValueMember = oDS.Tables("Table").Columns("ID").ToString
------------------------------
.... and I'm not getting anything. I know I'm getting and XML string back
and I know that I can read the dataset Table other ways, so what am I doing
wrong?

--
TFWBWY...A
Nov 21 '05 #1
6 1004
Hi Bryan ! :O)

Try this :
lbContacts.DataSource = oDS.Tables("Table")
Now this is quite a detour ! :O) lbContacts.DisplayMember =
oDS.Tables("Table").Columns("CI_NAME").ToString
lbContacts.ValueMember = oDS.Tables("Table").Columns("ID").ToString


How about this ?
'***
lbContacts.DisplayMember = "CI_NAME"
lbContacts.ValueMember = "ID"
'***

--
Best Regards
Yanick
Nov 21 '05 #2
Didn't work. Hmmm... I did exactly as you suggested, too. Any other
ideas?

"Zoury" <yanick_lefebvre at hotmail dot com> wrote in message
news:OO***************@tk2msftngp13.phx.gbl...
Hi Bryan ! :O)

Try this :
lbContacts.DataSource = oDS.Tables("Table")


Now this is quite a detour ! :O)
lbContacts.DisplayMember =
oDS.Tables("Table").Columns("CI_NAME").ToString
lbContacts.ValueMember = oDS.Tables("Table").Columns("ID").ToString


How about this ?
'***
lbContacts.DisplayMember = "CI_NAME"
lbContacts.ValueMember = "ID"
'***

--
Best Regards
Yanick

Nov 21 '05 #3
I did what you suggested and I finally got an error message:
"Could not bind to the new value member.
Parameter name: value"

Any clues as to what this means?
"Zoury" <yanick_lefebvre at hotmail dot com> wrote in message
news:OO***************@tk2msftngp13.phx.gbl...
Hi Bryan ! :O)

Try this :
lbContacts.DataSource = oDS.Tables("Table")


Now this is quite a detour ! :O)
lbContacts.DisplayMember =
oDS.Tables("Table").Columns("CI_NAME").ToString
lbContacts.ValueMember = oDS.Tables("Table").Columns("ID").ToString


How about this ?
'***
lbContacts.DisplayMember = "CI_NAME"
lbContacts.ValueMember = "ID"
'***

--
Best Regards
Yanick

Nov 21 '05 #4
Hello?? Anyone there??

"Bryan Dickerson" <tx******@netscape.net> wrote in message
news:uZ**************@TK2MSFTNGP14.phx.gbl...
I did what you suggested and I finally got an error message:
"Could not bind to the new value member.
Parameter name: value"

Any clues as to what this means?
"Zoury" <yanick_lefebvre at hotmail dot com> wrote in message
news:OO***************@tk2msftngp13.phx.gbl...
Hi Bryan ! :O)

Try this :
lbContacts.DataSource = oDS.Tables("Table")


Now this is quite a detour ! :O)
lbContacts.DisplayMember =
oDS.Tables("Table").Columns("CI_NAME").ToString
lbContacts.ValueMember =
oDS.Tables("Table").Columns("ID").ToString


How about this ?
'***
lbContacts.DisplayMember = "CI_NAME"
lbContacts.ValueMember = "ID"
'***

--
Best Regards
Yanick


Nov 21 '05 #5
The newsgroup you have reached is no longer in service. Please check your address and try again.
Nov 21 '05 #6
> >I did what you suggested and I finally got an error message:
"Could not bind to the new value member.
Parameter name: value"

Any clues as to what this means?


You can always google on that.. it's seems to happen in some specifics
occasions.

Can you show us a sample of the XML you load into the DataSet ? The problem
might be there.

--
Best Regards
Yanick
Nov 21 '05 #7

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

Similar topics

2
by: hennakapoor | last post by:
How do the form filling software determine which text field gets what data i.e. a typical form filling software will ask the user to enter the username / address / password etc. Whenever it goes to...
2
by: ramesh | last post by:
hi, I am using Com+ in my application. It will have InsertRecords,selectRecords,updateRecords function. In the Web Form i have Drop-down list. I want to select records from SQL and add it to this...
6
by: Brian Henry | last post by:
I was wondering how you guys would handle filling a list view with something like 10,000 items which each have 10 sub items on them... there has to be major speed issues with that right? Yet,...
3
by: crjunk | last post by:
I have a 3 table in my DataSet that I'm filling with data. After I've filled these 3 tables, I'm then trying to run a query that will fill a 4th table in the DataSet with data from the three...
11
by: Brian Henry | last post by:
Well here is the problem, I have a data set with about 9,000 to 20,000 people in it in the data table "people"... I am then reading it into a list view one at a time row by row... adding each...
2
by: drdave | last post by:
Hi All, I'm filling an arraylist with other arraylists within a loop and within the first iteration and addition all is fine.. however when I clear my value holding temporary array I lose the...
5
by: markr1000 | last post by:
I must have looked searched in 500+ places that showed up in Google searchs, but not one has an example of what I want to do. I have a Listbox on a User Control because I want to control the...
1
by: mlarsen1982 | last post by:
Hello, I have a quick question regarding filling a list box. Basically I need some assistance for a starting point. I have a form with 4 radio buttons for the user to select, then press next....
9
Vini171285
by: Vini171285 | last post by:
Hi, Actually i am filling a list box from database and depending on change in that list box ,the value corresponding to that selected index should come in the textbox,which should come from another...
3
by: aashishn86 | last post by:
Hi all, I am new to ASP, i am making a page on which i have a list box and a textbox. I have dynamically populated the list box from data on the server, what i want it that , when i select a option...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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...
0
Oralloy
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,...
0
tracyyun
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...
0
isladogs
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...

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.