回复 4楼wodetnt的帖子
请使用如下代码测试:
- Private Sub FpSpread1_CellDoubleClick(sender As System.Object, e As FarPoint.Win.Spread.CellClickEventArgs) Handles FpSpread1.CellDoubleClick
- Dim startRow As Int32
- startRow = 0
- Dim endRow As Int32
- endRow = 4
- e.Cancel = True
- FpSpread1.ActiveSheet.SetActiveCell(startRow, 0)
- FpSpread1.ActiveSheet.AddSelection(startRow, -1, endRow, -1)
- End Sub
复制代码 |