Guest User

Untitled

a guest
Dec 12th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. private void datagridview1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
  2. {
  3. foreach (DataGridViewRow row in datagridview1.Rows)
  4. {
  5. if (row.Cells["Jake"].Value == System.DBNull.Value && row.Cells["Jones"].Value == System.DBNull.Value && row.Cells["Lati"].Value == System.DBNull.Value &&row.Cells["Venitia"].Value == System.DBNull.Value)
  6. {
  7. row.DefaultCellStyle.BackColor = Color.Red;
  8. }
  9. }
  10. }
Add Comment
Please, Sign In to add comment