sam 你好,
目前有一种解决方案为:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!Page.IsPostBack)
- {
- PopupCellType popup = new PopupCellType(FpSpread1.ID, "ShowPopup()");
- this.FpSpread1.ActiveSheetView.Columns[0].CellType = popup;
- //this.FpSpread1.ActiveSheetView.Cells[0, 0].Value = "请猛烈点击我!!!";
- this.FpSpread1.Sheets[0].RowCount = 0;
- }
-
- }
- protected void Button1_Click(object sender, EventArgs e)
- {
- this.FpSpread1.Sheets[0].AddRows(this.FpSpread1.Sheets[0].Rows.Count, 1);
- FarPoint.Web.Spread.Extender.DateCalendarCellType datecellType = new DateCalendarCellType();
- datecellType.DateFormat = "yyyy-MM-dd";
- this.FpSpread1.ActiveSheetView.Columns[1].CellType = datecellType;
- }
复制代码
发生问题的具体原因还没有查出,有结果会尽快通知楼主。 |