回复 6楼atrm的帖子
例如希望使第一列不能移动,可以使用fpSpread1_DragDropBlock进行判断,实现代码:
- Private Sub fpSpread1_DragDropBlock(ByVal Col As Long, ByVal Row As Long, ByVal Col2 As Long, ByVal Row2 As Long, ByVal NewCol As Long, ByVal NewRow As Long, ByVal NewCol2 As Long, ByVal NewRow2 As Long, ByVal Overwrite As Boolean, Action As Integer, DataOnly As Boolean, Cancel As Boolean)
- If Col = 1 Then
- Cancel = True
- End If
- End Sub
复制代码
为了能为您提供更好的服务,请对本次服务做出评价。谢谢
|