We report an all-optical switching transmission grating fabricated by holographic polymer dispersed liquid crystal (HPDLC)
technique. The all-optical switching ability is achieved by doping the nematic LC with azobenzene. The trans-cis
deformation of doped azobenzene under the irradiation of pumping light induces the phase transformation of the phaseseparated
LC microdomains and further creates an index modulation environment to switch the grating efficiency. We
also observe the grating formation by monitoring the diffracted intensity at different writing laser power. An optimum of
writing power (150 mW/cm<sup>2</sup>) is required to get maximum diffraction efficiency.