DataRelation between two comboboxes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stefan

    #1

    DataRelation between two comboboxes

    I need help with the following problem.
    I created a datarelation
    DataRelation oRelation = new
    DataRelation("p lz_relation",od sAdressenDS.v_p lz.plz_idColumn ,
    odsAdressenDS.v _poststelle.plz _idColumn);
    odsAdressenDS.R elations.Add(oR elation);

    I know want to add this relation to two comboboxes


    cbxPlz.DataSour ce = odsAdressenDS.R elations["plz_relati on"].ParentTable;

    cbxPlz.ValueMem ber = "plz_id";

    cbxPlz.DisplayM ember = "plz_nr";

    //ortschaft --> Setze Datenverbindung als Quelle

    cbxOrt.DataSour ce = odsAdressenDS.R elations["plz_relati on"].ChildTable;

    cbxOrt.DisplayM ember = "poststelle ";

    cbxOrt.ValueMem ber = "plz_id";

    The values appears but when i change one of the indexes nothing happens.
    What do I wrong???

    Tnx
    Stefan


Working...