回复 1楼jingyuking的帖子
请问您是否是希望设置该单元格为数值型,那么可以使用 DoubleCellType:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- {
- return;
- }
- FarPoint.Web.Spread.DoubleCellType dblc = new FarPoint.Web.Spread.DoubleCellType();
- dblc.DecimalDigits = 3;
- dblc.FixedPoint = true;
- FpSpread1.ActiveSheetView.Cells[0, 0].CellType = dblc;
- FpSpread1.ActiveSheetView.Cells[0, 0].Value = 435.98745;
- }
复制代码 |