Case: I'm working on engine controlling software that shows all measured parameters in datagridview. The parameters are measured in one second interval so that the datagridview add new row every one second. I've done that task by using a timer.
Problem: I need to save all the data from datagridview in CSV format every time new row added.
I could achieve this by writing the save task in the timer. But it is a too heavy process for my computer in the control room. It is too heavy because the task I've implemented needs to create the file, open it, read all the data, write it, and close the file. I only need to write/add the new row to the file. Moreover, I can't use a button.
I need the save task will automatically executed every time a new row added.
I've tried to search the solution from the internet and I can't find the best one for my case. I need a lightweight solution.