回复 8楼leikaihua的帖子
可以设置事件中的参数 Cancel 为 true 来实现:
- Private Sub fpSpread1_BeforeEditMode(ByVal Col As Long, ByVal Row As Long, ByVal UserAction As FPSpreadADO.BeforeEditModeActionConstants, CursorPos As Variant, Cancel As Variant)
-
- Me.fpSpread1.EditMode = False
- Me.fpSpread1.Row = Row
- Me.fpSpread1.Col = Col
-
- Me.fpSpread1.Lock = True
-
- Cancel = True
-
- End Sub
复制代码 |