版主原代码:
protected override void Render(HtmlTextWriter writer)
{
Table dt = this.FpSpread1.FindControl("viewport") as Table;
dt.Attributes.Add("ondblclick", "alert('双击')");
base.Render(writer);
}
----------------------------------------------------------------------------------------------------
我改为如下代码:
protected override void Render(HtmlTextWriter writer)
{
Table dt = this.fpPo.FindControl("viewport") as Table;
//dt.Attributes.Add("onkeypress", "preventKey(event)");
//dt.Attributes.Add("ondblclick", "alert('双击')");
dt.Attributes.Add("ondblclick", "Fun_KK()");
base.Render(writer);
}
protected void Fun_KK()
{
}
在双击单元格时出错,请指点 |
|