def set_parent(self, new_parent, init=False):
self._created = False<EOL>SubComponent.set_parent(self, new_parent, init)<EOL>if self.index == -<NUM_LIT:1> or self.index >= len(self._parent.columns):<EOL><INDENT>self.index = len(self._parent.columns) - <NUM_LIT:1><EOL><DEDENT>self._parent.wx_obj.AppendCols(<NUM_LIT:1>)<EOL>self._created = True<EOL>
Associate the header to the control (it could be recreated)