回复 1楼lypvc的帖子
lypvc 你好,
建议通过合并列头来实现,代码如下;
- private void Form1_Load(object sender, EventArgs e)
- {
- this.fpSpread1.Sheets[0].ColumnHeader.Cells[0, 0].ColumnSpan = 2;
- this.fpSpread1.Sheets[0].ColumnHeader.Cells[0, 0].Text = "备注";
- FarPoint.Win.Spread.CellType.ImageCellType imgType = new FarPoint.Win.Spread.CellType.ImageCellType();
- FarPoint.Win.LineBorder lb = new FarPoint.Win.LineBorder(Color.Red, 3, true, false, true, false);
- this.fpSpread1.Sheets[0].Columns[0].Border = new FarPoint.Win.LineBorder(Color.Gray, 1, true, true, false, true);
- }
复制代码 |