DB to grid

I need a help to copy a table on mysql to a grid, but this table is generated when the user create a new proof of registration, and this new table have colunm’s number variable, depending on what was defined by User
how can I do that?

headers bd table exemple:
id | name | time_1 | time_2 | time_3 | … | time_n| final | average

Hi, and sorry for the late reply.

Are you using the Web Component, and not the server-side Java framework Grid?

If so, then you can add columns dynamically using the JavaScript API: