Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用同步融合网格控件。为此,我添加了一个上下文相关菜单,但即使释放鼠标后菜单似乎也没有消失
有什么提示吗?
默认情况下,通过 ContextMenu 或 GridControl 的 ContextMenuStrip API 绑定的上下文菜单将在单击其任何项目后自动关闭。
您是否使用任何自定义控件作为下拉部分?如果是这样,您可以在执行相应的菜单操作后,在菜单项的 MouseUp 事件中处理调用以隐藏下拉控件或将其处置(ctrl.Dispose())。