Question : Custom control to see/select mutliple entries from a list

I am looking for a technique (perhaps a custom control) that satisifies the following:

1.  Allows the user to see a full list of items from a master reference table, such as "state" (AK, AL, ... , NJ, NY, , etc.).  
2.  Allows the user to operate a checkbox to indicate whether each "state" is selected or not
3.  Allows the selections to be made for a parent item.  For example, a "Document", might be applicable in one or more states.  The users selections might be stored in a table called DocState containing fields DocID and StateCode
4.  Populate the DocState table with the valid selections only.  Do not store any unneeded (or invalid) combinations.
5.  Note:  I believe that there might be a control that does this in .net, but I can't remember what it is called.  
6.  I got close to this by using a implementation composed of a continuous subform containing a locked textbox (for state) and an checkbox (for selected).  The problem with the approach was that I need to store every stateCode in my DocState table causing a large number of records in the db.  I also need a flag in the table called "IsSelected".  I would like to find a better approach.
   

Answer : Custom control to see/select mutliple entries from a list

OK, we're on the same page.  Have you looked at a list box with the Multi Select property turned on?  It would list all the states, and in the review mode, it would highlight only those states which had a specific document.  In the Add Data mode, for a new document, all states would be showable, and as the user scrolled through the list, specific states could be clicked, highlighting them, after which, when the update command button was clicked it would add a record to the tblDocState for each state selected for that document.  You can select any number of rows to display on the listbox, probably something like 20 or so - what ever the max size (height) of form you are comfortable with.  
Random Solutions  
 
programming4us programming4us