After aligning the shapes, then, if you 1st select the gradient filled shape, and next, holding the shift key down, add the grid shape to the selection, go to operations > subtract and you should be left with 16 squares that have just the gradient fill that was under them.
Wapperdude