回复 1楼guxinghan的帖子
你好,
整行整列隐藏可以通过以下代码:
- this.FpSpread1.ActiveSheetView.Columns[0].Visible = false;
- this.FpSpread1.ActiveSheetView.Rows[0].Visible = false;
复制代码
隐藏某个单元格可以通过以下方法:
- protected override void Render(HtmlTextWriter writer)
- {
- Table tb = this.FpSpread1.FindControl("viewport") as Table;
- tb.Rows[0].Cells[0].Visible = false;
- base.Render(writer);
- }
复制代码
谢谢 |