默认选中ComboBox的某一项

让它选中“统计今天”(控件Name为cobListTime)

方法:

1.cobListTime.Text = cobListTime.Items[0].ToString();//默认选中第一个值

2.cobListTime.SelectedText = "统计今天";

3.cobListTime.SelectedIndex = 0;

4.cobListTime.SelectedIndex = cobListTime.Items.IndexOf("统计今天");

应该还有其他方法,一定,大家别忘了探索哟!

原文地址:https://www.cnblogs.com/zhangzongle/p/5349799.html