The diffraction gratings are widely used in Space-flight satellites for spectrograph instruments or in ground-based telescopes in astronomy. The diffraction gratings are one of the key optical components of such systems and have to exhibit very high optical performances. HORIBA Jobin Yvon S.A.S. (part of HORIBA Group) is in the forefront of such gratings development for more than 40 years. During the past decades, HORIBA Jobin Yvon (HJY) has developed a unique expertise in diffraction grating design and manufacturing processes for holographic, ruled or etched gratings. We will present in this paper an overview of diffraction grating technologies especially designed for space and astronomy applications. We will firstly review the heritage of the company in this field with the space qualification of different grating types. Then, we will describe several key grating technologies developed for specific space or astronomy projects: ruled blazed low groove density plane reflection grating, high-groove density holographic toroidal and spherical grating, and finally transmission Fused Silica Etched (FSE) grism-assembled grating. We will not present the Volume Phase Holographic (VPHG) grating type which is used in Astronomy.