I have a form with multiple combo boxes and text boxes making an invoice.. I have the combo boxes linked to my database and I want each selection to fill a different textbox. The comboboxes fill on form load... How can I fill the textbox with the selected index from the combobox? Any help will do. I am using Visual Studio 2010 in .net not C#
twalton42 0 Light Poster
Recommended Answers
Jump to PostJust to clarify, when you say
all the combo boxes are linked to the same table
that means you have a unique datatable as data source for all the comboboxes?
Or you are filling the combobox items using a datareader?In the first scenario when you select an item …
Jump to PostYou need separate datasources / binding sources for each combo.
Jump to PostIMO to fill the valid text you do not need the line
IncomeCodesBindingSource = CBIC.SelectedValue
Jump to PostActually I am lost. Do you need an example of what?
Please be so kind to consider putting all your code here and clarify wich are your expected behaviours, the expected results and the current ones.
Many thanks
Jump to Post@twalton42,
Mitja and I always said that you need to create separated, independent, data sources for each combo box, but you never show us how you did that.
The code you post above is not enough to see what you are doing, so we can not help further …
All 19 Replies
khentz 0 Junior Poster in Training
twalton42 0 Light Poster
khentz 0 Junior Poster in Training
twalton42 0 Light Poster
anas alrawi 0 Newbie Poster
twalton42 0 Light Poster
lolafuertes 145 Master Poster
twalton42 0 Light Poster
lolafuertes 145 Master Poster
twalton42 0 Light Poster
lolafuertes 145 Master Poster
twalton42 0 Light Poster
Mitja Bonca 557 Nearly a Posting Maven
twalton42 0 Light Poster
lolafuertes 145 Master Poster
twalton42 0 Light Poster
siva28 -2 Newbie Poster
lolafuertes commented: Is not a good idea to fill a thread with new questions. Please start a distinct one. -2
twalton42 0 Light Poster
lolafuertes 145 Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.