I had this simple event procedure which turned row colour when certain values were detected.
All was fine until I converted the column concerned to a template field, now the e.Row.Cells(2).Text always returns a blank. What do I need to do to inspect this field again?
Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
Select Case e.Row.Cells(2).Text
Case "1. Starting"
e.Row.BackColor = System.Drawing.Color.Orange
Case "2. Current"
Case "3. Finishing"
e.Row.BackColor = System.Drawing.Color.PaleVioletRed
Case "4. Finished"