DataGridView中的ToolTipText不显示 [英] DataGridView ToolTipText not showing
问题描述
我已绑定 DataGridView的
在一个桌面应用程序与有他们的的ToolTipText
属性集列中的数据,但没有工具当我将鼠标悬停在网格视图(细胞或细胞头)显示提示。
I have data bound DataGridView
in a desktop app with columns that have their ToolTipText
property set, yet no tool tip is displayed when I hover over grid view (cells or cell headers).
网格的 ShowCellToolTips
属性观点是真正
,并且我一直在使用,这不是我鼠标移到前程序改变破发点验证。
The ShowCellToolTips
property of the grid view is true
, and I have verified using break points that it is not changed programmatically before I mouse over.
我曾尝试创建一个 CellToolTipTextNeeded
事件处理程序,看看有什么工具提示文本是的,但事件处理程序没有被调用。
I have tried creating a CellToolTipTextNeeded
event handler to see what the tool tip text was, but the event handler is never called.
有什么我错过了什么?
谢谢,
罗布
编辑::我们正在使用的框架2.0
We're using framework 2.0.
推荐答案
我们结束了使用工具提示窗口小部件和 CellMouseEnter
, CellMouseLeave
事件以适当表现出来。不是最佳的,但它的作品围绕我们遇到了奇怪的行为。
We ended up using a ToolTip widget and the CellMouseEnter
, CellMouseLeave
events to show it appropriately. Not optimal, but it works around the odd behaviour we were experiencing.
这篇关于DataGridView中的ToolTipText不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!