# LyX table: “Misplaced \noalign” error in colored multicolumn row

I found out how to color table cells/columns/rows thanks to the answers here and here.

I followed the examples in the documentation. In the preamble, I put:

\usepackage{colortbl}
\definecolor{lightgray}{gray}{0.9}

And at the beginning of the row, I put a TeX box with:

\rowcolor{lightgray}

It does work, i.e. the table is generated with the desired color, but LyX always displays a bunch of "Misplaced \noalign" errors.