您好,
实现的思路是在事件里面做判断
- private void fpSpread1_EditModeOff(object sender, EventArgs e)
- {
- if (this.fpSpread1.ActiveSheet.Cells[0, 0].Value == null ||this.fpSpread1.ActiveSheet.Cells[0, 0].Value.ToString() == "0")
- {
- this.fpSpread1.ActiveSheet.Cells[0, 0].Value = null;
- }
- }
- private void fpSpread1_EditModeOn(object sender, EventArgs e)
- {
- if (this.fpSpread1.ActiveSheet.Cells[0, 0].Value == null)
- {
- this.fpSpread1.ActiveSheet.Cells[0, 0].Value = 0;
- }
- }
复制代码
WindowsFormsApplication46 (2).zip
(46.35 KB, 下载次数: 296)
|