Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the best way to clear all data rows? #302

Open
chu86 opened this issue Apr 23, 2024 · 1 comment
Open

What is the best way to clear all data rows? #302

chu86 opened this issue Apr 23, 2024 · 1 comment

Comments

@chu86
Copy link

chu86 commented Apr 23, 2024

Hello.

We load an excel file with a header and potentially already existing datarows.
Mappings are added, and finally the excel will be saved with a collection of data-objects.
We noticed that for the data-rows that were already present in the file, values do not get updated.
What is the best way to load a file and clear all datarows while keeping the header, before saving with new data?

I tried SaveAsync with an empty collection, before doing SaveAsync with my actual collection. This appears to work, but I'm hoping there is a better solution?

Greetings

@mganss
Copy link
Owner

mganss commented Apr 24, 2024

Can you elaborate on your use case, perhaps also with a code snippet and a demo Excel file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants