回复 7楼senyugo的帖子
我把上面我们讨论的代码又验证一遍,是可以实现1#您期望的效果的。
- this.fpSpread1.ActiveSheet.OperationMode = FarPoint.Win.Spread.OperationMode.SingleSelect;
- MessageBox.Show(fpSpread1.ActiveSheet.ActiveRowIndex.ToString());
- fpSpread1.ActiveSheet.ActiveRowIndex = 3;
- MessageBox.Show(fpSpread1.ActiveSheet.ActiveRowIndex.ToString());
- fpSpread1.ActiveSheet.ClearSelection();
- fpSpread1.ActiveSheet.AddSelection(3, 0, 1, fpSpread1.ActiveSheet.ColumnCount);
复制代码 |