checkedcomboboxedit 中selectALL 如何改为中文

checkedcomboboxedit 中selectALL 如何改为中文

Properties.SelectAllItemCaption

你说的checkedcomboboxedit是什么?一个第三方控件么?它如果有源代码,在源代码里修改,否则看看它有没有中文的资源或者语言包,再不行,可以反射调用其中的私有成员,强改。

重写CustomDisplayText事件,如:
private void checkedComboBoxEdit1_CustomDisplayText(object sender, DevExpress.XtraEditors.Controls.CustomDisplayTextEventArgs e)
{
List List = checkedComboBoxEdit1.Properties.Items.GetCheckedValues();
if (List.Count == checkedComboBoxEdit1.Properties.Items.Count)
e.DisplayText = "ALL";
}

去你使用的js框架的官网下语文文件:
如:locale/easyui-lang-zh_CN.js

然后引入相关需要汉化的页面:如: