Quantcast
Channel: Colorir célula do LsitView
Viewing all articles
Browse latest Browse all 8

Colorir célula do LsitView

$
0
0

Boa tarde.

Tenho uma ListView em C# WEB, nesta ListView tem uma célula <TD> que contém uma Label.

Seguinte: eu leio está Label, se for igual a "finalizado", tenho que pintar esta CÉLULA de vermelho.

Como que eu poderia fazer isso?

Minha última tentativa foi esta:

" HtmlTableCell cell = new HtmlTableCell("tdStatus");
string myColor = "#F2F2F2";
cell.BgColor = System.Drawing.ColorTranslator.FromHtml(myColor).ToString(); "

Efim, nada.

Podem me ajudar?


Viewing all articles
Browse latest Browse all 8

Latest Images





Latest Images