If you mean like in this screen grab:

Then press Ctl+A to turn it on and off.
If you mean this (Rotate):

or this (Move):

then pressing Ctl+Q will turn them on or off - this also applies to the Scale Gizmo.
If you want to turn the Grid on or off then press Ctl+G.
Gerry
System: Win 10 Pro (21H2), Asus X99-E WS, CPU i7-5930K -3,5 GHz, 32 GB DDR4 2666-16 RAM, NVidia GTX 1080 Ti GPU - 11 GB VRAM(Driver Studio-536.99), Samsung 850 Pro 512 GB SSD, 6 TB HD storage.