日期:2014-05-18  浏览次数:21048 次

请问,如何设置checkedListBox的选定项
如何把checkedListBox1中,"刘德华"那一项设置为选定状态,也就是勾选状态?

------解决方案--------------------
如果是通过 Items 绑定数据的
C# code
checkedListBox1.SetSelected(checkedListBox1.Items.IndexOf("刘德华"), true);

------解决方案--------------------
C# code
    checkedListBox1.SetItemChecked(checkedListBox1.Items.IndexOf("刘德华"), true);

------解决方案--------------------
探讨

如果是通过 Items 绑定数据的
C# code
checkedListBox1.SetSelected(checkedListBox1.Items.IndexOf("刘德华"), true);