wjj_123 你好,
可以设置 Spread 下 ClientAutoSize 属性实现,请使用以下代码测试,
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- return;
- FpSpread1.Sheets[0].ColumnCount = 6;
- FpSpread1.Sheets[0].RowCount = 12;
- FpSpread1.ClientAutoSize = true;
- FpSpread1.Sheets[0].PageSize = 12;
- }
- protected void Button1_Click(object sender, EventArgs e)
- {
- this.FpSpread1.Sheets[0].RowCount++;
- }
复制代码 |