您试试下面的方法,在退出编辑后进行处理
- private void fpSpread1_EditModeOff(object sender, EventArgs e)
- {
- var cell = fpSpread1.Sheets[0].ActiveCell;
- if (cell != null && cell.CellType is CurrencyCellType)
- {
- var v = cell.Value;
- if (true)
- {
- cell.Value = "";
- fpSpread1.Sheets[0].SetActiveCell(cell.Row.Index, cell.Column.Index);
- }
- }
- }
复制代码 |