Hi Oleg,
Yes it's doable, you would need to specify the table properties in the Pre Execution function (columns, headers, etc).
And since the query didn't run yet in the Pre Execution of the Table Component, probably use a query component to fetch the data with a higher priority to run before the Table Component, so you know how many columns would go to the table.
By default CDA cache is enabled and will store the results of the query, so the Table Component would read the data from CDA cache and not run the query a second time.