I liked this solution of @Federico.Stefanato quite a bit and to make it even more dynamic you might consider to apply the AddOrModifyRows() instead of AddRow()
I liked this solution of @Federico.Stefanato quite a bit and to make it even more dynamic you might consider to apply the AddOrModifyRows() instead of AddRow()