且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何防止使用vb.net双击datagridview中的DataGridViewCheckBoxCell列

更新时间:2023-12-02 11:31:52

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



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