Hiding the editor grid

Is it possible to hide the editor’s grid from a script?

Interested in hiding the grid, too. But maybe better by an entry in the Gizmos list.