each DataGridViewColumn does have a "DefaultCellStyle" which you can set
in advance. There also is RowTemplate which has a CellStyle, and
RowsDefaultCellStyle.
If you want to change colours at runtime, you could have a look at the
BeforeCellPaint event.