Hi,
I was trying to setup two UltraComboEditors with master-detail relations. In my dataset, there is a master table "Country", and a child table "City". They are related by the relationship Country.id = City.CountryId. I tried the following:
this->ultraComboEditorCountry->SetDataBinding(myDataset, "Country");this->ultraComboEditorCountry->DisplayMember = "Country";this->ultraComboEditorCountry->ValueMember = "id"; this->ultraComboEditorCity->SetDataBinding(myDataset, "Country.FK_Country_City");this->ultraComboEditorCity->DisplayMember = "Name";this->ultraComboEditorCity->ValueMember = "CountryId";
The second comboEditor (ultraComboEditorCity) always shows the selection from the first country's child, no matter what country I choose in the country comboEditor. Is there anything I can do to make the second comboEditor (city) automatic shows the related selections based on the country selected? Thanks!
Hi Chris,
Yes, you need to set SynchWithCurrencyManager to true on the first (country) combo.
Hi Mike,
Thanks for the info. However, I've tried setting the country comboEditor's SyncWithCurrencyManager to true, it doesn't work - still the same outcome. I've also tried setting both the country and city comboEditor's SyncWithCurrencyManager to true, but same problem happens. Any hints?