The option use to be in a side bar under display. I cannot find where it is in V 3.0
1 Answer
If you go to viewport overlays and uncheck floor, the grid will disappear.
concerning render only: According to other questions the grid itself will not ever be rendered.