Hello
I want to define a grid such as the first row has a horizontal background of a color different from the next rows that have vertical backgrounds of alternate colors..
Extrapolating from Mathematica help I nearly managed to get what I want, except the first row that I would like to have a yellow horizontal background. Here is my code:
data = {{"first", 1, a, aa}, {"second", 11, b, bb}, {"third", 111, c,
cc}}: (* the number of data rows may vary *)
Grid[Prepend[data, {"My Data", SpanFromLeft}],
Background -> {{{LightBlue, LightRed}}, {1, 1} -> Yellow},
Frame -> All]
What is the correct way to get that first row in a different color from the other two alternating ones?
Thanks