升级到SP3后,代码:
protected override void Render(HtmlTextWriter writer)
{
Table spread=this.FpSpread1.FindControl("viewport") as Table;
int rowCount = spread.Rows.Count;
int colCount = spread.Rows[0].Cells.Count;
for (int i = 0; i < rowCount; i++)
{
for (int j = 0; j < colCount; j++)
{
spread.Rows.Cells[j].BorderWidth = 1;
}
}
base.Render(writer);
}
都不能正常运行了,Table spread=this.FpSpread1.FindControl("viewport") as Table;
中spread返回为空 |