>>>>>Hey Guys, I am having an interesting issue. I have two combos that have the same late bound datasource designed to allow the user to select a subset of the dataset. One Start combo and one stop combo. The code is way simple.
>>>>>
>>>>>
>>>>> ui_FpStartComboBox.DataSource = Common.FpFolders; //Common.FpFolders is an existing DataTable
>>>>> ui_FpStartComboBox.DisplayMember = "FpFolders";
>>>>> ui_FpStartComboBox.ValueMember = "FpFolders";
>>>>>
>>>>> ui_FpStopComboBox.DataSource = Common.FpFolders;
>>>>> ui_FpStopComboBox.DisplayMember = "FpFolders";
>>>>> ui_FpStopComboBox.ValueMember = "FpFolders";
>>>>>
>>>>>The problem is when you select a value in one combo the value of both combos changes to the selected value. This is true when using the mouse or the arrow keys. There are no events registered and I have deleted and recreated the combos with new names. Any combos on the page using the datasource display the same item.
>>>>
>>>>IIRC this is standard behaviour. You'll need different datasources for each instance. Maybe make a list from the dataset and use that for one of them?
>>>>
>>>>>My humble thanks in advance,
>>>
>>>I was afraid this was the answer. However, it seems like a real bug. I will load down the app with a copy of data that is already loaded.
>>>
>>>Thanks.
>>
>>BTW, the following works as expected
ui_FpStopComboBox.DataSource = Common.FpFolders.Copy();
>
>What do you do if you need to bind that back to the data?
Hi,
I would assume that in this instance Joe doesn't need to do that - just to be able to select a valid value in the ComboBox