这样可以格式化数据:- PopupCellType popup = new PopupCellType(FpSpread1.ID, "ShowPopup()");
- popup.NumberFormat = new System.Globalization.NumberFormatInfo();
- popup.NumberFormat.NumberDecimalDigits = 3;
- this.FpSpread1.ActiveSheetView.Columns[0].CellType = popup;
- this.FpSpread1.ActiveSheetView.Cells[0, 0].Value = 12.123456;
复制代码 |