找回密码
 立即注册

QQ登录

只需一步,快速开始

wlp5402

银牌会员

51

主题

145

帖子

2828

积分

银牌会员

积分
2828

活字格认证

wlp5402
银牌会员   /  发表于:2011-12-8 12:57  /   查看:5610  /  回复:1
this.FpsQuotation.ClientAutoSize = true;
this.FpsQuotation.ActiveSheetView.PageSize = FpsQuotation.Rows.Count + 1;
加了這個之後變形了。
我想在ADD ROW後,FARPONT自動變高。

jpg

jpg

1 个回复

正序浏览
iceman
社区贡献组   /  发表于:2011-12-8 13:52:00
沙发

回复 1# wlp5402 的帖子

你好,我使用下面代码测试,没有重现问题:

  1.   protected void Page_Load(object sender, EventArgs e)
  2.         {
  3.             this.FpSpread1.ClientAutoSize = true;   
  4.             this.FpSpread1.ActiveSheetView.AllowInsert = true;

  5.             FarPoint.Web.Spread.Extender.TextBoxWatermarkCellType tb = new FarPoint.Web.Spread.Extender.TextBoxWatermarkCellType();
  6.             tb.WatermarkText = "Required";
  7.             FpSpread1.ActiveSheetView.Cells[0, 0].CellType = tb;
  8.         }
  9.         protected void FpSpread1_InsertCommand(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e)
  10.         {
  11.             this.FpSpread1.ActiveSheetView.PageSize = this.FpSpread1.Rows.Count + 1;
  12.         }
复制代码
所以,能否请你发个 Demo 上来便于调试?
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部