Try this:
private void DataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e)
{
var dgv = (DataGridView) sender;
if (e.RowIndex < 0)
return;
var rowCurrent = ((DataRowView) dgv.Rows[e.RowIndex].DataBoundItem).Row;
e.CellStyle.BackColor = rowCurrent["yourValue"].ToString() == "0"
? Color.White
: Color.Red;
}