This problem may become if list type of your second combobox is DropDown not DropDownList, normally the same error in that exception you mention returns. Please check your controls.
This problem may become if list type of your second combobox is DropDown not DropDownList, normally the same error in that exception you mention returns. Please check your controls. For a second thought , If your comboboxes are related each other ,as follows: One to many relation ComboBox:CompanyGroup ComboBox:Company ComboBox:Person -->If one changes from above , below is triggered.
You case is like : Many to Many relation ComboBox:Tags ComboBox:Questions --> If question changes it triggers its own tags and If tags changes it triggers for only which tag the question has. For this purpose only,you should search in entire collection each time your combobox item changes. Because as I understand from your question,one choice triggers another choice.
Yes mine is dropdown style, and it is not causing the problem as a the value selected is checked for null values. Yes, mine is many to many relation and hence I group and search the list. I am concerned that the list changes everytime I select so, does that cause the problem.
– lune Aug 5 '09 at 12:30.
So for each combobox, you have a list of strings. You can also store all these different lists of strings in another structure, like dictionary. Perhaps this will cause more lines of code and additional memory use but in return you get a more easily manageable code.
Yes, that can be done but, the values can be edited and hence there would be need for synchronizing with other lists. This would be the solution if there is no better solution. I am not sure this can be done with a dictionary.
– lune Aug 5 '09 at 12:36 Agreed. This is why I said additional lines of code. Anyhow, I had a similar problem and this was my solution.
Rather less efficient as it is but having list of strings also provides me some extra functionality. Also, personally I prefer multiple of smaller sized lines of code instead of smartly written but a very long 1 line of code. – someone Aug 5 '09 at 13:27.
Well, I got the answer. You can use a subset of objects to bind a control, that was not the cause of the problem. And I am able to handle multiple comboboxes in the way described.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.