private void MainGrid_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) { if (_viewModel.DoesBeginWithT(e.RowIndex)) { e.CellStyle.BackColor = Color.Red; } //e.CellStyle.ForeColor = Color.Aqua; }