Link to home
Start Free TrialLog in
Avatar of oogooglies
oogooglies

asked on

ComboBox Issues!!!

I  have a stronglytyped dateset that i reference from within my User Control, this contains a table of reference data for example

YesNoId   YesNo
1             Yes
0             No

Both Comboboxs need the yes/no options so i set the datasource to the strongly typed dataset however when the page is run ion debug when i change the selection in one of the combo boxs the other combo box's option changes to match....

Has anyone else come accross something similar to this? Its getting really frustrating now :-(

Thanks in advance for any help you can provide

Avatar of BHK4
BHK4
Flag of United States of America image

i have run into this before...im guessing that you probably have your data binding property for each combo box set to the same item of the dataset, hence changing one changes the selected value of the binding adaptor.  you can create seperate dataviews, datasets, dataadaptors (depending on which one is easier and fits your situation best, which with the info i have i am not sure) and set each combobox's binding to a seperate one...this should fix the problem....if this does not work or there is some other issue if you could post a little more info about the connection/dataset and the combo box properties, it would make it easier to troubleshoot

hope this helps
ASKER CERTIFIED SOLUTION
Avatar of Vaxman2
Vaxman2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of oogooglies
oogooglies

ASKER


At the moment these two combo boxes are doing nothing, therefore do not have the binding property set at all. This is because i am trying to get them to work independantly so just playing around. I am using one dataset to give me the options for the combo and then i will want to bind the results to a table in an SQL server database. Its probably something really stupid that i'm missing, but has been giving me trouble for ages.

Can you tell me what exact info you would need to perhaps help me further?
Supurb Thankyou very much Vaxman2.... Also thanks for your time BHK4