When I have a combo box that is databound, and I select an item from it, and go back to change my item, all of the items in that combobox are the same thing rather then showing me my choices from the dataset. What am I doing wrong?
Printable View
When I have a combo box that is databound, and I select an item from it, and go back to change my item, all of the items in that combobox are the same thing rather then showing me my choices from the dataset. What am I doing wrong?
What do you mean "When I go back"?
I choose an option within the combo box, go on to type an email address in the Send TO textbox, but decide that I want to change the email account that I want to send from, so I click back on the combo box and all of the options in the box are the same. For Example, I have [email protected] and [email protected] in the combo box as those are defined email accounts, I choose the first one sweber11, and when I want to choose the second one sweber25, all of the options in the combobox say sweber11
Hmm, post your combox events code. Perhaps its reloading based upon some invalid/undesired action.
There is not any "coding." I chose the "Use Databound" on the menu for the combo box (the little arrow in the upper right hand corner of the combobox).
The options I have are: Datasource (I have EmailDataSource selected), Display member (I have email address selected), ValueMember (nothing selected), and Selected Value (nothing selected)
Ok, you bound the cbo via the data wiz. Then does your table / field contain duplicating values by any chance?
"EmailDataSource" is your table and "someemailfield" is your DisplayMember?
Is the database copied to your projects directory or not?
Well I would assume the datasource is copied to the directory since it is created and active and works fine.
No, the database itself. As when the wizard starts there is an option at the end to copy the db into your project folder. So if you are manually entering in items for testing on the db that is not in the project folders location then it wont show the records, same for the reverse. You basically need to be working in the db that you are connecting to.