GVNutrition = is the Gridview name that I want to change backcolor of rows to red when Risk Assessment column contains the word Positive. P.S. Risk Assessment column pulls the values from Test_Result (data source).
my current code is as shown below. But it doest change the backcolor to red. No change happens.
Sub GVNutrition_RowDataBound(sender As Object, e As GridViewRowEventArgs)
If DataBinder.Eval(e.Row.DataItem, "Test_Result") = "Positive" Then
e.Row.BackColor = System.Drawing.Color.Red
Thank you for your time.