本文介绍了DevExpress XtraEditors LookupEdit不显示弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Devexpress Xtragrid,并想添加一个LookupEdit

在字段中预定义向下箭头时不显示弹出窗口
对于数据,我正在使用简单的测试类

I´m using Devexpress Xtragrid and want to add a LookupEdit

It does not show the Popup when preassing the down Arrow in the field
For teh Data I´m using a simple testclass

public class mx
{
    int mxval;
    string mxtext;

    public int MXval { get { return mxval; } set { mxval = value; } }
    public string MXtext { get { return mxtext; } set { mxtext = value; } }

    public mx(int i, string t)
    {
        mxval = i;
        mxtext = t;
    }
}
public List<mx> mxList = new List<mx>();
public List<mx> testmx
{
    get { return mxList; }
}



充满3个条目:



Which is filled with 3 Entries :

testmx.Add(new mx(0, ""));
testmx.Add(new mx(1, "Eins"));
testmx.Add(new mx(2, "Zwei"));




数据源设置为使用此列表的BindingSource
DIsplay成员设置为MXText,Valuemember设置为MXValue

另外,Lookup-Edit的Property-Editor字段也是由GUI设置的,因此,由gui选择的绑定"和字段"名称未写在文本编辑器中可以正常工作
但是运行应用程序时,Pupo不会显示

有什么想法??




The DataSource is set to a BindingSource which uses this List
The DIsplay Member is set to MXText and Valuemember to MXValue

Also the Property-Editor fields of the Lookup-Edit were set by the GUI, so the Binding and Field names which wre selected by gui an not written in the text editor work correct
BUT the Pupo does nnot show , when running the App

Any ideas ??

推荐答案


这篇关于DevExpress XtraEditors LookupEdit不显示弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-14 00:17