2016-09-23 57 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

相關問題