While only a partially transmetalated network was observed in a rigidmetal-organic framework (MOF), not only a completely transmetalated isostructural network but also a partially transmetalated core-shell heterostructural network could be obtained in a flexible MOF by controlling the reaction conditions.