this is a problem with header pagination (subforms and tables) when you dynamically modify the visual parameters of the header subform. I do not know a good practice solution for this but a nasty little hack.
Basically I am manipulating the columnWidths property of the table in the initialize event. For that you must already know which columns are to be hidden very early in the game. This is not suitable for dynamic interactive forms but for producing a printed table.