combobox.BindingContext[绑定的数据源].Position
绑定的数据源里的指针位置改变了!同样和它一起绑定的数据源的控件一样会变啊!

解决方案 »

  1.   

    你可以用两个绑定
     BindingContext bc = new BindingContext(); 
     
         this.comboBox1.BindingContext = bc; 
     
         comboBox1.DataSource = _dataSet.Tables["orders"]; 
     
         comboBox1.ValueMember = "CustomerID"; 
     
         comboBox1.DisplayMember = "CustomerID"; 
      
         bc = new BindingContext(); 
     
         this.comboBox2.BindingContext = bc; 
     
         comboBox2.DataSource = _dataSet.Tables["orders"]; 
     
         comboBox2.ValueMember = "CustomerID"; 
     
         comboBox2.DisplayMember = "CustomerID";