Note: I know there were other people asking the same question here and here, but none of there examples were minimal, and I'm still confuzzled. Sorry for the inconvience.
I know I can do this:
%rowcolor-multirow-test.tex
\documentclass{report}
\usepackage[table]{xcolor}
\usepackage{multirow}
\definecolor{slg}{gray}{0.95}
% ^^ "super-light gray" -- the builtin 'lightgray' isn't light enough.
\begin{document}
Wrong: \\
\rowcolors{1}{white}{slg}
\begin{tabular}{c|c|c|c}
A & B & C & D \\
\multirow{2}{*}{Hello!} & foo & bar & 42 \\
& fooo & baar & 13 \\
\end{tabular}
\bigskip
Right:\\
\begin{tabular}{c|c|c|c}
A & B & C & D \\
& foo & bar & 42 \\
\multirow{-2}{*}{Hello!} & fooo & baar & 13 \\
% ^^ Put it on the odd rows and give it a negative number to span up.
\end{tabular}
\end{document}
But how can I get this, preferably with the vertical lines intact?
(I cheated and colored the cells manually with \cellcolor[gray]{0.95}
)
pdfLaTeX 3.14159265-2.6-1.40.17 (MiKTeX 2.9)