首页 > 代码库 > ToolStripComboBox 绑定数据

ToolStripComboBox 绑定数据

 

//添加ComboBox

tcbbQueryCondition.ComboBox.DataSource = RelationalOperators.GetAllOperators();
tcbbQueryCondition.ComboBox.DisplayMember = "OperatorName";
tcbbQueryCondition.ComboBox.ValueMember = "Operator";

ToolStripComboBox 绑定数据