我已经在设计器将 Cells[0, 0] 设置为ButtonCellType类型了,但是OnClientClick 要根据实际情变改变,请问如何在服务器端获取单元格中控件呢?
protected override void Render(HtmlTextWriter writer)
{
FarPoint.Web.Spread.ButtonCellType bt = new FarPoint.Web.Spread.ButtonCellType();
bt = FpSpread1.ActiveSheetView.Cells[0, 0].CellType as FarPoint.Web.Spread.ButtonCellType;
bt.OnClientClick = "Button2_onclick();";
bt.Text = "ppp";
base.Render(writer);
}
好象没有任何效果OnClientClick和text都没有发生变化. |
|