WantsToLearn
Programmer
Hello all,
I want to use a series of combo boxes to allow my users to specify a custom sort order. As they select from various fields, I want succeeding comboboxes to display already selected choices first in the list but not be selectable again. Is this doable and if so, can someone point me to get started?
As an example for discussion purposes, let's say that they can select from FName, LName, Address, City, State and PostalCode in any order.
Before any user action:
ComboBox1
FName
LName
Address
City
State
PostalCode
After user selects LName and we go to ComboBox2
LName - 1st in list because user selected it in ComboBox1
FName - rest of list in original order
Address
City
State
PostalCode
After user selects State and we go to ComboBox3
LName - 1st in list because user selected it in ComboBox1
State - 2nd in list because user selected it in ComboBox2
FName - rest of list in original order
Address
City
PostalCode
and so on. I think I can get the lists right, but I would like to show already selected items from prior comboboxes in a different color or make them unselectable so that they are read only. I hope I have asked my question clearly. Thanks in advance for any help, ideas, sugestions, etc!
I want to use a series of combo boxes to allow my users to specify a custom sort order. As they select from various fields, I want succeeding comboboxes to display already selected choices first in the list but not be selectable again. Is this doable and if so, can someone point me to get started?
As an example for discussion purposes, let's say that they can select from FName, LName, Address, City, State and PostalCode in any order.
Before any user action:
ComboBox1
FName
LName
Address
City
State
PostalCode
After user selects LName and we go to ComboBox2
LName - 1st in list because user selected it in ComboBox1
FName - rest of list in original order
Address
City
State
PostalCode
After user selects State and we go to ComboBox3
LName - 1st in list because user selected it in ComboBox1
State - 2nd in list because user selected it in ComboBox2
FName - rest of list in original order
Address
City
PostalCode
and so on. I think I can get the lists right, but I would like to show already selected items from prior comboboxes in a different color or make them unselectable so that they are read only. I hope I have asked my question clearly. Thanks in advance for any help, ideas, sugestions, etc!