首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

C# dataGridView1中运用ToolTip解决方案

2012-04-13 
C# dataGridView1中运用ToolTip双击 dataGridView1 中某一行 用ToolTip 显示这一行的信息这个要怎么实现[

C# dataGridView1中运用ToolTip
双击 dataGridView1 中某一行 用ToolTip 显示这一行的信息
这个要怎么实现

[解决办法]

探讨

引用:
这个我没试过,不知道行不行
你在doubleClick中用ToolTip 试试


我在dataGridView1_CellDoubleClick里用
toolTip.ShowAlways = true;
toolTip.IsBalloon = true;//是否为气泡显示

string currentMessge……

[解决办法]
那个显示不出来的,别说双击了。
因为对象不同。tooltip接收control,但是点击时的Cell或者datarow都不是control。
我的做法是弄一个form,然后让那个form边框为none,双击时调用,你需要在鼠标点击的时候判断位置,让那个form出现在鼠标点击的那行就行了。

热点排行