2016-09-23 61 views
0

我用xtragrid,我有一个科拉姆是checklistbox:的DevExpress XtraGrid中Checklistbox显示第一个词项检查

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")}); 

当我selectd一个复选框,我想让它显示以下内容:(d,P,O,R )不是医生,病人....

enter image description here

+0

Sr,这个链接img:http://s1376.photobucket.com/user/nnquang207/media/Untitle12_zpsiulnr2au.png.html – user3193107

回答

1

处理好CheckedComboBoxEdit控制的CustomDisplayText event

private void checkedComboBoxEdit1_CustomDisplayText(object sender, DevExpress.XtraEditors.Controls.CustomDisplayTextEventArgs e) 
{ 
    e.DisplayText = e.Value.ToString(); 
} 
+0

非常感谢,我完成了。 – user3193107

相关问题