回复 1楼summonyyq的帖子
请问您是通过什么方式注册的?请尝试以下代码:
- protected override void Render(HtmlTextWriter writer)
- {
- Table tb = this.FpSpread1.FindControl("rh") as Table;
- for (int i = 0; i < tb.Rows.Count; i++)
- {
- for (int j = 0; j < tb.Rows[0].Cells.Count; j++)
- {
- tb.Rows[i].Cells[j].Attributes.Add("onclick","alert('test')");
- }
- }
- base.Render(writer);
- }
复制代码 |