It can be done by setting some column properties. In the columns collection set the read only columns to ReadOnly
, then open the DefaultCellStyle
"style builder" and set the BackColor
, SelectionBackColor
and maybe SelectionForeColor
to whatever you want.
At least in part, the colors you show look like they might be part of some Office based visual design style (the mix for RO + selected for instance looks custom (ie from RGB values) and non-Windows). To get the full effect you show, you may have to set the cell style for the other columns if for instance that is the not the default selected item color. The danger of full-on custom colors is that they can look terrible on systems using other color schemes.