您完整试下,下面代码,我这里测试是好着的
- fpSpread2.ActiveSheet.ClearRange(0, 0, 2, 2, false);
- fpSpread2.ActiveSheet.Cells[0, 0, 2, 2].Border = new FarPoint.Win.EmptyBorder();
- fpSpread2.ActiveSheet.Cells[0, 0, 2, 2].Locked = true;
- fpSpread2.ActiveSheet.Protect = true;
- FarPoint.Win.Spread.GridLine gdln = new FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.None);
- fpSpread2.ActiveSheet.HorizontalGridLine = gdln;
- fpSpread2.ActiveSheet.VerticalGridLine = gdln;
复制代码 |