回复 1楼mo930905的帖子
你好,请使用以下代码测试:
- protected override void Render(HtmlTextWriter writer)
- {
- Table colHeader = this.FpSpread1.FindControl("cht") as Table;
- colHeader.Attributes.Add("onclick", "alert('点击列头')");
- Table rowHeader = this.FpSpread1.FindControl("rh") as Table;
- rowHeader.Attributes.Add("onclick", "alert('点击行头')");
- base.Render(writer);
- }
复制代码 |