Modify panel's row after panel has been created
bpy.types.Scene.show_row = bpy.props.BoolProperty()

row1.enabled = context.scene.show_row


And your other function will just set the show_row property. Thats it.