try something likecomboBox1.DataSource = ds;
comboBox1.DisplayMember = "Table1.Name";
comboBox1.ValueMember = "Table1.ID";comboBox1.DataBindings.Add("SelectedValue", ds,"Table2.ID2");

解决方案 »

  1.   

    TO:saucer(思归)
       comboBox1.DataBindings.Add("SelectedValue", ds,"Table2.ID2");
       其中"Table2.ID2"在那里定义,是什么意思?
      

  2.   

    it just means the column, which may be from another table and you want to bind to the selected item's value
      

  3.   

    使用SelectValue是可以绑定,可是为什么使用SelectItem不能绑定呢?我程序需要绑定SelectItem!
      

  4.   

    do not understand what you want, do you mean you want
    comboBox1.DataBindings.Add("SelectedText", ds,"Table2.ID2");
    ?when you have
    comboBox1.DisplayMember = "Table1.Name";
    comboBox1.ValueMember = "Table1.ID";SelectedItem is bound to the ValueMember