A: 

I'm not sure when your code is running, but try setting your DataGridView's DefaultCellStyle properties in your DGV's DataGridView.CellFormatting Event.

The MSDN link above has an example of what you're trying to do.

Note that you won't be iterating through each row in your DGV (like your method does); you'd instead use the DataGridViewCellFormattingEventArgs ColumnIndex property to check which column the event fired for.

Jay Riggs
if i use that event can i still use the method i created?
Willem
THX DUDE...i used the event and put the method in it and it worked perfectly
Willem
A: 

dataGridView1.Rows[i].DefaultCellStyle.BackColor = Color.Red;

Must change the bakColor for entire row. Except for cells having own Style.BackColor set.

You can set a breakPoint at sentence to verify it does.

x77
it get there alrright and it reads the line but it does nothing
Willem