这边在RowHeaderClick的时候先调用了leaveCell的处理,又追加了如下RowHeaderClick的处理,就行了。
If e.RowHeader = True Then
FpSpread1_Sheet1.OperationMode = FarPoint.Win.Spread.OperationMode.SingleSelect
FpSpread1_Sheet1.ClearSelection()
FpSpread1_Sheet1.ActiveRowIndex = e.Row
FpSpread1_Sheet1.AddSelection(e.Row, e.Column, 1, 1)
Else
FpSpread1_Sheet1.OperationMode = FarPoint.Win.Spread.OperationMode.Normal
End If |