[英]EPPlus worksheet.DeleteRow is not deleting the full row
I call ws.DeleteRow(1,11,true)
in a process and previously this was working fine. 我在一个过程中调用了
ws.DeleteRow(1,11,true)
,以前这个工作正常。
Now though it deletes the row up until column G 现在,尽管它删除行直到G列
Columns G and H are only having 6 rows deleted instead of the expected 11 G和H列仅删除了6行,而不是预期的11行
What could cause this change? 是什么引起了这种变化? Things have been fine for months with this process.
这个过程几个月来一切都很好。
I still don't know the root cause that was preventing deletion of those 5 rows in the 2 columns, all the cells look empty. 我仍然不知道阻止删除2列中那5行的根本原因,所有单元格看起来都是空的。
As a workaround, I ran ws.Cells[1,1,11,8].Value = null;
作为解决方法,我运行了
ws.Cells[1,1,11,8].Value = null;
on the line before calling DeleteRow
and that took care of the issue. 在致电
DeleteRow
之前就已经解决了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.