Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有dataGridView很多列和行。
dataGridView
现在我想将第一个column(文本)的内容绑定到comboBox.
column
comboBox
我怎样才能做到这一点?
您可以像这样设置组合框的数据源:
private void BindComboBox() { comboBox1.DataSource = dataGridView.DataSource; comboBox1.DisplayMember = "The column Name you want to bind"; }