I want change the background row when I press on Update LinkButton in side grid view Please say to me what is wrong in this code I do it code but the background changed just in put C# word that means it's static on C# but I want when you do any value and updated it the result will be changed the background color:
Code:
if (e.Row.RowType == DataControlRowType.DataRow) { if ((DataBinder.Eval(e.Row.DataItem, "cat_name")).ToString() == "C#") e.Row.BackColor = Color.Aquamarine; // e.Row.Cells[2].BackColor = System.Drawing.Color.Red; }
Comment