回复 2楼xiaoyanwei2000的帖子
测试代码如下:
- protected override void Render(HtmlTextWriter writer)
- {
- Table table = FpSpread1.FindControl("cmdTable") as Table;
- //自定义按钮调用后台事件
- TableCell cell1 = new TableCell();
- Label rowcount = new Label();
- rowcount.Text = this.FpSpread1.Sheets[0].RowCount.ToString();
- cell1.Controls.Add(rowcount);
- table.Rows[0].Cells.AddAt(14, cell1);
- base.Render(writer);
- }
复制代码 |