Posted on: 12/20/2013 3:41:27 AM | Views : 742

Hi!
I have a gridview that is bound to a sql database. Once I run it my users will update daily the various status' so what I need is when the user enters the word 'Done' in the gridview cell then it will change the cell to another color and hide the word "Done" without hiding/deleting the rest of the text.

Here is what I have so far:
var label = dataItem["Status"].FindControl("Statuslbl") as Label; if (label != null) { var item = dataItem; var text = label.Text; if (item["Status"].Text.Contains("Done")) { item["Status"].BackColor = Color.Red; } Please Help!

Go to the complete details ...