为什么 popupform 不是 pop for LookupEdit?
大家好,我正在研究 Winform 和 Devexpress。 我有一个自定义的lookupEdit,并将其注册为功能区存储库Edit。当我打开表单时,我可以看到此查找编辑,但没有弹出窗口。当我的自定义控件初始化时,很奇怪,我看到可见列计数为 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);
}
我跟踪了代码,但无法找出看不到弹出窗口且无法选择值的原因。请帮我找出这个问题的根本原因!多谢!
Hi I am working on Winform and Devexpress.
I have a customized lookupEdit and I register it as a ribbon repositoryEdit. When I open my form, I can see this lookupEdit, but no popup comes. It's very strange when my customized control gets initialized, I see visible columns count is 1 because I create one column - but in the onLeave event, I check the column again, I see the visible column is 0. Why does this happen? Here is the code for the onLeave event.
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);
}
I traced the code and cannot find out the reason why I cannot see my popup and I cannot select value. Please help me find the root cause of this problem! Thanks a lot!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论