Use CellFormatting event.
Do something like this:
private void CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) {
if (e.ColumnIndex = 0) {
dgv.Rows(e.RowIndex).DefaultCellStyle.BackColor = Color.LightSkyBlue;
dgv.Rows(e.RowIndex).DefaultCellStyle.SelectionBackColor = Color.SkyBlue;
}
}
NOTE: you just need to format row style in one column, no need to repeat row formatting for each cell - if you need to format specific cell, ask for that particular column and format only that one (you need to add .Cells(e.ColumnIndex) after (e.rowindex).