现在用CheckedComboBoxEdit 自带的全选功能,选中之后是将所有的选项显示出来。但是这样看起来很混乱,能不能当全选之后,修改显示内容,显示成ALL?
重写CustomDisplayText事件,如:
private void checkedComboBoxEdit1_CustomDisplayText(object sender, DevExpress.XtraEditors.Controls.CustomDisplayTextEventArgs e)
{
List<object> List = checkedComboBoxEdit1.Properties.Items.GetCheckedValues();
if (List.Count == checkedComboBoxEdit1.Properties.Items.Count)
e.DisplayText = "ALL";
}
可是没有GetCheckedValues()这个方法啊_(:зゝ∠)_
不过现在已经解决了,原来是用CustomDisplayText这个事件的啊,谢谢了!
请问如何放出CheckedComboBoxEdit 自带的全选功能 我设置了CheckComboboxEdit.Properties.SelectAllItemVisible=true 但是无效