title: Change the color of a row in Gridview when Checkbox is checked
body: <p>I have a <code>datagridview</code> with a Template field of Checkboxes for each row in an asp.net app. I am running this code in the <code>PageLoad</code> event. When a person checks a box on any row, that rows Backcolor or Forecolor should be highlighted yellow, but it's not working. Here is my code:</p>
  
  <pre><code>foreach (GridViewRow row in gvSummary.Rows)
  {
      CheckBox cb = (CheckBox)row.FindControl("chkitemSelector");
      if (cb != null &amp;&amp; cb.Checked)
      {
          row.BackColor = Color.Yellow;
      }
  }
  </code></pre>
  
  <p>How can I make this work?</p>