h3110 3v3ry0n3, especially EPPlus team!
I have an Excel template like this:
_______________________________
| Title 1 | Title 2 |
|_______________|_______________|
| %Placeholder% | %Placeholder% |
|_______________|_______________|
| Special cell | Special cell |
|_______________|_______________|
Special cell - empty cell with some data validations and data lists.
So, this template has double purpose:
- to be filled with data programmatically (replace
%placeholder%s
) or - to be filled by hand (by selecting lists in special cells)
In second case I invoke sheet.DeleteRow(1)
and expect special row #3 to become row #2 (shift up), but this does not happen. So, the question is: is this a bug and I should post an issue or there is some workaround to force rows shift up?
Here're some thoughts. I guess, this could be caused by treating special cells as empty. May be, there is a way to copy data validations from row #3 to row #2? Also there is another similar question C# ExcelPackage (EPPlus) DeleteRow does not change sheet dimension? for more general case and it does not seem that deleted rows there are followed by empty lines.