为什么popupform不会为lookupEdit弹出?

时间:2011-09-15 18:47:57

标签: c# .net devexpress repositorylookupedit

您好我正在使用Winform和Devexpress。 我有一个自定义的lookupEdit,我将其注册为ribbon repositoryEdit。当我打开表单时,我可以看到这个lookupEdit,但没有弹出窗口。我的自定义控件初始化时非常奇怪,我看到可见列数为1,因为我创建了一列 - 但在onLeave事件中,我再次检查列,我看到可见列为0.为什么会发生这种情况?这是onLeave事件的代码。

    protected override void OnLeave(EventArgs e)
    {
        if (IsPopupOpen)
        {
            ItemIndex = PopupForm.SelectedIndex;
            _selectfromPopup = true;
        }

        Properties.DisplayMember = Properties.Columns[0].Caption; // Visible Column Count is 0, why?

        base.OnLeave(e);

        if (textChanged)
            OnLeaveWithChangedText(e);

    }

我跟踪了代码,无法找出我无法看到弹出窗口的原因,也无法选择值。请帮我找到这个问题的根本原因!非常感谢!

0 个答案:

没有答案