Automatically adding a new column in the repeating group based on the csv file uploaded

Hi, I was wondering if there is a way where the columns of the repeating group changes automatically without me having to manually add a new field based on the csv file that the user uploads?

It would be great if anyone provides a solution to this problem. Many thanks