I'm sorry ... i didn't understood you question, but why don't you fill the combobox using code ? Do you need help with that ?
Main Topics
Browse All TopicsI have a combobox that I am trying to populate with a list of people who are saved in a column in my database table. I tried fiddling with the built in datasource options you get when you first place the box and I can preview the data with the preview option but it just DOESN'T want to put the results list in my box and i'm starting to pull my hair out to say the least.
I've gone through the settings and changed every option and can still see the preview of my names. All I can say is that the Target Dataset drop down menu in the Preview Screen is greyed out and the Parameters section on the right says No parameters are defined on the selected object.
How come i can preview the darn thing but it can't populate the combobox when i run my program? What am I missing?
I also tried to code the results into the list with a data reader which worked but with the method I used it's only pasting the first name of the list in the box and not adding the rest of the names to select from. But i can understand why when you look at the code i've used:
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
In short, the built in data bound options don't seem to work. I can preview the table and it works, but when I run the program it doesn't list the names.
I've tried coding using datareader but it doesn't function the way i need it to.
I need the combobox to fill with a list of names from my database table. I also need ideas on the best option to be able to select multiple names if I want results for more than one doctor.
>> I need the combobox to fill with a list of names from my database table.
But you also want to select multiple items & this is not possible with the regular combobox. You can use a checkboxlist, listview, 3rd party control or even you can popup a new form to select multiple itens and display only the names (comma separated). This is just some ideas.
What you would like?
Well, now i know that it wont work with combobox that definitely helps a little.... However I'm really needing to use a drop down menu of some sort due to limited space and neatness. Is there no drop down format where you could also use checkboxes?
If not then i might have to rethink how i would like this to look.
If you can produce some code that may work with any list then that would be great, but as I said I hope that we can work something out with my current design.
I appreciate your help.
Business Accounts
Answer for Membership
by: Arka3LPosted on 2008-12-03 at 19:10:24ID: 23092386
Oh, and I'm using VS 2005 and SQLServer 2005