Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
425
Master - Detail relation with two ComboEditors
posted

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!

Parents Reply Children