The way I would do this is to create a square, let's say 25 x 25 pixels. Then I set the X Duplication Distance (Page Options > General) to 25px and the Y to 0px and make enough duplicates for a row.

Then I change the Y Duplication Distance to -25px and the X Duplication to 0px, select the row of boxes and make enough duplicates for the columns.