Blueprint for Dynamic Table

I Want to generate dynamic table data with dynamic column. I want that user will be able to add column and as per columns he can enter multiple rows.

Please suggest blueprint and how to use it in template to render data.

In the table-fields plugin case i have to consider first row as th(column Name)? or is there any other way. And How can i show buttons and anchor link or any html element in cell?