不好意思,没有办法判断是否是双击。判断是否是特定Cell来决定是否取消编辑,希望可能满足你的需求。- Private Sub gcMultiRow1_CellBeginEdit(sender As Object, e As CellBeginEditEventArgs)
- If e.CellName = "checkBoxCell1" Or e.CellName = "comboBoxCell1" Then
- Return
- End If
- If e.BeginEditReason = BeginEditReason.MouseActions Then
- e.Cancel = True
- End If
- End Sub
复制代码 |