private void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e) { if (e.ColumnIndex >= 4 && e.RowIndex >= 0) if (int.Parse(e.FormattedValue.ToString()) <= 0) e.CellStyle.BackColor = Color.LightCoral; }