你好,我使用下面代码测试,没有重现问题:
- protected void Page_Load(object sender, EventArgs e)
- {
- this.FpSpread1.ClientAutoSize = true;
- this.FpSpread1.ActiveSheetView.AllowInsert = true;
- FarPoint.Web.Spread.Extender.TextBoxWatermarkCellType tb = new FarPoint.Web.Spread.Extender.TextBoxWatermarkCellType();
- tb.WatermarkText = "Required";
- FpSpread1.ActiveSheetView.Cells[0, 0].CellType = tb;
- }
- protected void FpSpread1_InsertCommand(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e)
- {
- this.FpSpread1.ActiveSheetView.PageSize = this.FpSpread1.Rows.Count + 1;
- }
复制代码 所以,能否请你发个 Demo 上来便于调试? |