I have to admit that I am very surprised that a program like Photoshop doesn't have a simple function to draw a grid.

But you can create a grid very easily in GIMP. GIMP is free. Even if you like to work in PS, there is no reason not to have GIMP on your computer to use the few functions that GIMP has and PS doesn't.