title: change gridview colour when checkbox selected
body: <p>I have a gridview with some data bound to it. I also have different background for alternating rows, so the table is more readable... How do I change the color of the row background when checkbox in the first column is checked and change it back to original when it is unchecked. The problem I'm having is, how to know if original background (after unchecking the checkbox) is for normal row or for alternating row? </p>
  
  <p>I know how to change row attributes like this:</p>
  
  <pre><code>protected void gvUser_OnRowDataBound(object sender, GridViewRowEventArgs e)
  {
      if (e.Row.RowType == System.Web.UI.WebControls.DataControlRowType.DataRow)
      {
          e.Row.Attributes.Add("onmouseover", "this.originalstyle=this.style.backgroundColor;this.style.backgroundColor='#D9ECFB'");
          e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=this.originalstyle;");
      }
  }
  </code></pre>
  
  <p>But, what if there are more checkboxes selected, how do I know which is the original background?</p>