J.P*_*cay 3 c# combobox winforms
我有2个组合框,它们绑定到数据集中的单个绑定源.当我在其中一个组合框中选择一个项目时,它们都会改变.我在组合框中没有代码,但我确实有数据集填充:
this.cLIENT_BranchesTableAdapter.Fill(this.gcDataSet.CLIENT_Branches);
Run Code Online (Sandbox Code Playgroud)
可能是什么导致了这个?
为每个ComboBox提供自己的BindingSource:
comboBox1.DataSource = new BindingSource(source, string.Empty);
comboBox2.DataSource = new BindingSource(source, string.Empty);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
872 次 |
| 最近记录: |