C#里下拉框选中问题, C⼀S架构, 从数据库里查出了值, 要让这个值在下拉框中显示为选中状态, 怎么写?

2025-03-21 19:02:44
推荐回答(2个)
回答1:

控件ID。Checked = true;
this.comboBox1.SelectedItem = this.comboBox1.Items[1];
//或
this.comboBox1.SelectedText = "选中项的值";

回答2:

用checked属性