回复 6楼X765321的帖子
X765321 你好,请使用以下代码测试:
- protected override void Render(HtmlTextWriter writer)
- {
- WebControl update = this.FpSpread1.FindControl("Update") as WebControl;
- update.Attributes.Add("onclick", ClientScript.GetPostBackEventReference(FpSpread1, "Update,-1,-1") + "; return false;");
- base.Render(writer);
- }
- protected void FpSpread1_UpdateCommand1(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e)
- {
- this.FpSpread2.Sheets[0].Cells[0, 0].BackColor = System.Drawing.Color.Red;
- }
复制代码 |