title: alternate color gridview rows based on change of cell value asp.net
body: <p><strong>1 item <br />
  1 item</strong><br /> 
  2 item<br />
  2 item<br />
  <strong>3 item</strong><br />
  4 item<br />
  4 item<br />
  <strong>5 item</strong><br /></p>
  
  <p>I have a gridview bound to a datasource.  I want to change the color of the rows based on the GROUPING of the first column. I do not know what the values of the column will be, but basically I need to switch from one color to the other color when the value in that column changes.  (I used bold to show what I mean) Once again <strong>I don't know the value in that column, so I can't just say "if it equals 1 then do this</strong>" - I know how to do that. :))  So just switch the row color from blue to red each time the value in column one changes.  (i.e. red, red, blue, blue, red, blue, blue, red per the example above)  Thanks for any suggestions.  (I'm a VB person, but can manage to translate code if need be.  Thanks again)</p>