回复 4楼X765321的帖子
如果要使 Spread 中所有单元格点击进入编辑状态,可以使用以下方法:
后台:
- protected override void Render(HtmlTextWriter writer)
- {
- Table viewPort = this.FpSpread1.FindControl("viewport") as Table;
- viewPort.Attributes.Add("onclick", "MakePermanentEdit()");
- base.Render(writer);
- }
复制代码
前台:
- <script language="javascript" type="text/javascript">
- function MakePermanentEdit()
- {
- this.FpSpread1.StartEdit();
- }
- </script>
复制代码 |