如何在DataGridView中执行鼠标单击事件? [英] How Can i Perform Mouse Click Event in DataGridView?

查看:322
本文介绍了如何在DataGridView中执行鼠标单击事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.
我有带标签的dataGridView.每当鼠标单击DataGridView中的标签时,我都想在另一个面板中用值打开该行...请帮助提供示例代码..

谢谢...

Hi to All.
I have dataGridView with labels.. Whenever Mouse click on labels in DataGridView i want to open that row in another panel with values...Please help with sample code..

Thanking You...

推荐答案

请参阅此 ^ ]


对于特定的单元格单击,可以使用cellclick事件.有关详细信息,请参见链接 [
refer to this link[^]


For a particular cell click, you can use cellclick event. For details, see the link[^]


我认为您应该用Hyperlink/Linkbutton替换标签,并给他们标签外观.
并单击此超链接/链接"按钮,您可以打开弹出窗口.
I think you should replace your label with Hyperlink/Linkbutton and give them look of label.
and on click of this Hyperlink/Linkbutton you can open your popup.


这篇关于如何在DataGridView中执行鼠标单击事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆