I have 3 drop down list for search process.I wanna get the result for all combinations.ie, if I choose the first drop down list, I'll get the result depending on the first itself.When I select first and second, I wanna get the result corresponding to first and second.And if I select 3 wanna get the result depending on the three drop down list.How can I do this?I need your help.
Drop down list selection(C#)?
It's been a while since I last toyed with C#, so I don't know the details anymore, but...
If you want to do this, you'll have to write your own code to detect changes made to the selection of comboboxes; you can't simply implement the OnSelectedItemChanged (or whatever it's called) handler, because if you update the contents of the combobox in response to a changed selection in one of the other boxes, then the selection in that combobox may change as well, triggering changes in the other two comboboxes. Changes in those two other comboboxes may in turn change the selection in those comboboxs, etc., etc. In other words, they keep changing each other's selections and your program hangs.
Reply:You cannot use OnSelectedIndexChanged event because you'll have to wait until all 3 events would fire (if they would).
So why don't you just place a button besides these 3 dropdowns and on click just take a look what are the selected indeces of all 3 dropdownlists. if all three indeces %26gt; 0 then all 3 dropdowns has been used
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment