可以
- fpSpread2.ActiveSheet.Cells[9, 0].CellType = new CNumberCellType();
复制代码
- public class CNumberCellType : NumberCellType
- {
- public override void SetEditorValue(object value)
- {
- if (value == null || value.ToString() == "")
- {
- value = 0;
- }
- base.SetEditorValue(value);
- }
- }
复制代码 |