Creating templates for child tables

I am looking for the best approach to implement a template that populates child tables as well as change the format of the child table buy showing/hiding the columns. My use case is to create a template for Quotation Items so that whenever quotation is prepared depending on the quotation type, we would like certain columns to be visible and change the column width too. That way users don’t have to edit the column width and visiblity manually.
The implementation is similar to Tax Template but the tax template only updates the rows. I would love to know if its possible to update the columns too by fetching the column setting from the template.