I am using an asp:GridView to display data from SQL Server. I would like to change the color of a cell by comparing a float to the value of the cell (TableCell). I am using c#. Below is a snippet that shows what I am attempting to accomplish. Thank you in advance.
if ((e.Row.Cells.Text != "Text on header row") && (e.Rows.Cells < 0.65))
e.Row.Cells.BackColor = System.Drawing.ColorTranslator.FromHtml("#000FF");