回复 5楼jinqiong的帖子
网格线 GridLine 只能以表单为单位进行设置。所以,需要先因此网格线。在设置边框模拟。
- this.fpSpread1.Sheets[0].DefaultStyle.Border = new LineBorder(Color.Gray, 1, true, true, false, false);
- this.fpSpread1.Sheets[0].HorizontalGridLine = new GridLine(GridLineType.None);
- this.fpSpread1.Sheets[0].VerticalGridLine = new GridLine(GridLineType.None);
- this.fpSpread1.Sheets[0].Rows[1].Border = new LineBorder(Color.Gray, 1, true, false, false, false);
复制代码 |