如何防止使用vb.net双击datagridview中的DataGridViewCheckBoxCell列 [英] How to prevent double click a column of DataGridViewCheckBoxCell in datagridview using vb.net

查看:109
本文介绍了如何防止使用vb.net双击datagridview中的DataGridViewCheckBoxCell列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

如何防止双击数据网格列CheckBoxCell

在datagridview中使用vb.net,





从数据网格视图控件中提供停止/禁用双击事件



提前致谢

Hi
How to prevent double click a column of Data Grid View CheckBoxCell
in datagridview using vb.net,


Provide stop/disable the double click event from data grid view control

Thanks in advance

推荐答案

你好朋友,你可以尝试这个代码:



Hello friend, You may try this code:

Private Sub DataGridView1_CellMouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles DataGridView1.CellMouseDoubleClick

   DataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect

End Sub



让我知道它是否有效。 :)

- DD


Let me know if it works. :)
- DD


这篇关于如何防止使用vb.net双击datagridview中的DataGridViewCheckBoxCell列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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