Devexpress xtragrid Checklistbox 显示选中的第一个单词项目
Devexpress xtragrid Checklistbox show first word item checked
我用xtragrid
,我有一个colum是checkedlistbox:
new DevExpress.XtraEditors.Controls.CheckedListBoxItem ("D", "Doctor"),
new DevExpress.XtraEditors.Controls.CheckedListBoxItem ("P", "Patient"),
new DevExpress.XtraEditors.Controls.CheckedListBoxItem ("O", "Other Companies"),
new DevExpress.XtraEditors.Controls.CheckedListBoxItem ("R", "Related Companies")});
当我选择一个复选框时,我希望它显示以下内容:(D,P,O,R) 而不是 Doctor,Patient....
处理 CheckedComboBoxEdit 控件的 CustomDisplayText event:
private void checkedComboBoxEdit1_CustomDisplayText(object sender, DevExpress.XtraEditors.Controls.CustomDisplayTextEventArgs e)
{
e.DisplayText = e.Value.ToString();
}
我用xtragrid
,我有一个colum是checkedlistbox:
new DevExpress.XtraEditors.Controls.CheckedListBoxItem ("D", "Doctor"),
new DevExpress.XtraEditors.Controls.CheckedListBoxItem ("P", "Patient"),
new DevExpress.XtraEditors.Controls.CheckedListBoxItem ("O", "Other Companies"),
new DevExpress.XtraEditors.Controls.CheckedListBoxItem ("R", "Related Companies")});
当我选择一个复选框时,我希望它显示以下内容:(D,P,O,R) 而不是 Doctor,Patient....
处理 CheckedComboBoxEdit 控件的 CustomDisplayText event:
private void checkedComboBoxEdit1_CustomDisplayText(object sender, DevExpress.XtraEditors.Controls.CustomDisplayTextEventArgs e)
{
e.DisplayText = e.Value.ToString();
}