你好,可以在点击 Update 按钮中设置 ActiveCell 为非 DateCalendarCellType 类型,借用你的Render 重载:- protected override void Render(HtmlTextWriter writer)
- {
- Table table = FpSpread1.FindControl("cmdTable") as Table;
- table.Width = 1000;
- WebControl UpdateButton = (WebControl)FpSpread1.FindControl("Update");
- if (UpdateButton != null)
- {
- UpdateButton.Attributes.Add("onclick", "var ret = confirm('你确定更新吗?');FpSpread1.SetActiveCell(0,1); if(ret){FpSpread1.Update();}");
- }
- base.Render(writer);
- }
复制代码 |