【问题标题】:Devexpress xtragrid Checklistbox show first word item checkedDevexpress xtragrid Checklistbox 显示选中的第一个单词项
【发布时间】:2016-09-23 09:37:26
【问题描述】:

我使用xtragrid,我有一个colum is 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")});

当我选择一个复选框时,我希望它显示以下内容:(D,P,O,R) not Doctor,Patient....

【问题讨论】:

标签: c# devexpress xtragrid


【解决方案1】:

处理 CheckedComboBoxEdit 控件的CustomDisplayText event:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-29
    • 1970-01-01
    • 1970-01-01
    • 2011-07-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多