Binding data to a ToolStripComboBox

前端 未结 3 1677
滥情空心
滥情空心 2021-01-04 07:20

C#

I have ToolStripComboBox control. Is there a way to bind this ToolStripComboBox to a list?

3条回答
  •  执笔经年
    2021-01-04 07:58

    You might also need to set ComboBox.BindingContext to Form's BindingContext property:

    toolStripComboBox1.ComboBox.BindingContext = this.BindingContext;
    

提交回复
热议问题