我做了些测试 发现如果不把 commandbar 上的其他项隐藏 就不会出这个错误 就是这个
protected override void Render(HtmlTextWriter writer)
{
WebControl update = FpSpread1.FindControl("Update") as WebControl;
update.Visible = false;
WebControl copy = FpSpread1.FindControl("Copy") as WebControl;
copy.Visible = false;
WebControl clear = FpSpread1.FindControl("Clear") as WebControl;
clear.Visible = false;
WebControl paste = FpSpread1.FindControl("aste") as WebControl;
paste.Visible = false;
WebControl print = FpSpread1.FindControl("rint") as WebControl;
print.Visible = true;
WebControl cancel = FpSpread1.FindControl("Cancel") as WebControl;
cancel.Visible = false;
base.Render(writer);
} |