title: How to change DataGrid cell background color based on cell value
body: <p>I'm trying to change the <code>Background</code> color of my <code>DataGrid</code> cells that contains the word 'Modify'.</p>
  
  <p>In <code>WinForms</code> I've accomplished that with this code:</p>
  
  <pre><code>DataGridViewCellStyle style = new DataGridViewCellStyle();
  style.BackColor = Color.DarkCyan;
  
  foreach (DataGridViewRow Row in dataGridView1.Rows)
  {
      if (Row.Cells["Permission"].Value.ToString().Contains("Modify"))
      {
          Row.Cells["Permission"].Style = style;
      }
  }
  </code></pre>
  
  <p>I populate this <code>DataGrid</code> with a <code>DataTable</code>.</p>
  
  <p>I know very little about <code>WPF</code> yet, so if you have any suggestions, please be very specific.</p>