回复 3楼X765321的帖子
X765321 你好,
关于 border 问题,我是通过以下方法实现的:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- return;
- this.FpSpread1.Sheets[0].Columns[0].Width = 0;
- this.FpSpread1.Sheets[0].Columns[0].Border.BorderStyle = BorderStyle.None;
- FarPoint.Web.Spread.StyleInfo style = new FarPoint.Web.Spread.StyleInfo();
- style.Border.BorderSizeLeft = 0;
- this.FpSpread1.Sheets[0].SetStyleInfo(-1, 1, style);
- }
- protected override void Render(HtmlTextWriter writer)
- {
- Table columnheader = this.FpSpread1.FindControl("cht") as Table;
- columnheader.Rows[0].Cells[0].BorderStyle = BorderStyle.None;
- base.Render(writer);
- }
复制代码 |