I wonder how it would be possible to set a Forecolor to a Table cell element using the .Attributes.
The thing is that I have to put the color from "myColor" and using ColorTranslator but know how to combine this with the .Attributes?
So instead of the color "red", I am trying to put the color "myColor" instead:
HtmlTableCell tableCell = (HtmlTableCell)GridView1.Rows.FindControl("tdCell");
String myColor = "#F2F2F2";
tableCell.Attributes.Add("style", "color:red"); //System.Drawing.ColorTranslator.FromHtml(myColor);
View Complete Post