New in Wolfram Mathematica 6: Automated Table Layout  previous | next 
Spanning Rows and Columns
Mathematica 6 automatically handles arbitrary arrangements of spanning rows and columns.
In[1]:=

Click for copyable input
Grid[Table[

  RandomChoice[{SpanFromLeft, SpanFromAbove, 

    Item[RandomInteger[1000], 

     Background -> Hue[RandomReal[], .2, .9]]}], {30}, {15}], 

 Frame -> All]
Out[1]=