回复 1楼noahark的帖子
noahark 你好,
错误提示有 DoubleCellType 的 ErrorMessage 属性控制,请参考:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- {
- return;
- }
- FpSpread1.Sheets[0].ColumnCount = 7;
- FpSpread1.Sheets[0].PageSize = 50;
- FpSpread1.Sheets[0].RowCount = 50;
- FarPoint.Web.Spread.DoubleCellType genrl = new FarPoint.Web.Spread.DoubleCellType();
- genrl.ErrorMessage = "当前输入为非法数据";
- int i;
- for (i = 0; i <= 49; i++)
- {
- FpSpread1.Sheets[0].Cells[i, 0].CellType = genrl;
- FpSpread1.Sheets[0].Cells[i, 0].Value = 100 + i;
- }
- }
复制代码 |