Grid display in drawing

How to define extend of the grid display in a drawing?