Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void datagridview1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
- {
- foreach (DataGridViewRow row in datagridview1.Rows)
- {
- 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)
- {
- row.DefaultCellStyle.BackColor = Color.Red;
- }
- }
- }
Add Comment
Please, Sign In to add comment