回复 1楼simonshen的帖子
辛苦辛苦,请使用以下代码测试:
- protected override void Render(HtmlTextWriter writer)
- {
- Table tb = this.FpSpread1.FindControl("cht") as Table;
- int lastRowIndex = tb.Rows.Count - 1;
- int lastCellIndex = tb.Rows[lastRowIndex].Cells.Count - 1;
- tb.Rows[lastRowIndex].Cells[lastCellIndex].Style.Value = "background-color:red";
- base.Render(writer);
- }
复制代码 |