|
-
Apr 5th, 2008, 10:57 AM
#10
Thread Starter
Lively Member
Re: [2008] combobox add items
The code worked, I do like the database idea which I added one but confused about complex binding. I attached an MS access DB for storing the the combobox selection which works. Do I need a separate table to store the collection for the combobox and the original table to save the selection? Or can a user at runtime create any collection they want and I have to code it using a selectedindex and addrange property or some other way? I'm not sure how to approach this. Can a field save a list of items or one item at a time. If it can save a list, i'm not sure how a field can save a list and not be overwritten by one item selected in the combobox when you save the record. I've looked at several examples but they all address certain steps and not the big picture. I basically want a txtbox, combobox, a button, and a database where the user can enter text in the txtbox which permantly adds the string to the combobox list, then select the item in the combobox and save it to the dB for that record. Is there a tutorial or a walkthrough that someone can point me to, to help me set the proper foundation for a starting point? Or I probably have in this forum and too frazzled to notice the answer staring me in the face as I've probably read every post that has to do with complex binding with listboxes and comboboxes.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|