回复 12楼lidongzhi的帖子
逐级抓取:
C#
- protected override void Render(HtmlTextWriter writer)
- {
- WebControl spread = this.FpSpread1.FindControl("viewport") as WebControl;
- Table t1 = spread.Controls[0] as Table;
- Table t2 = t1.Rows[0].Cells[0].Controls[0] as Table;
- t2.Rows[0].Attributes.Add("onclick", "test");
- base.Render(writer);
- }
复制代码
Script
- <script type="text/javascript">
- function test() {
- return;
- }
- </script>
复制代码 |