可以啊,把行边框重新设置,Width 为 0即可。这样设置:
- this.fpSpread1.Sheets[0].RowCount = 10;
- LineBorder border1 = new LineBorder(Color.Black, 1, true, true, true, true);
- for (int i = 0; i < this.fpSpread1.Sheets[0].Rows.Count; i++)
- {
- this.fpSpread1.Sheets[0].Rows[i].Border = border1;
- }
- this.fpSpread1.Sheets[0].AddUnboundRows(this.fpSpread1.Sheets[0].Rows.Count, 10);
- for (int i = 0; i < 10; i++)
- {
- this.fpSpread1.Sheets[0].Rows[this.fpSpread1.Sheets[0].Rows.Count - 1 - i].Border = new LineBorder(Color.Black, 0, true, true, true, true); ;
- }
复制代码 |