I’m trying to concert a existing web application to web 2.0. What I need to do is to be able to color a cell depending of the value I get in a variable and to be able to align the text in the cell right, center or left.
Before in 1.0 I has this kind of code:
listbox2.Cell(listbox2.LastIndex, 1) = mySucc
If mySucc = “223” Then listbox2.CellStyle(listbox2.lastindex,1) = StyleCell223Background
If mySucc = “053” Then listbox2.CellStyle(listbox2.lastindex,1) = StyleCell053Background
If mySucc = “231” Then listbox2.CellStyle(listbox2.lastindex,1) = StyleCell231Background
If mySucc = “418” Then listbox2.CellStyle(listbox2.lastindex,1) = StyleCell418Background
If mySucc = “AUT” Then listbox2.CellStyle(listbox2.lastindex,1) = StyleCellAUTBackground
If mySucc = “DIS” Then listbox2.CellStyle(listbox2.lastindex,1) = StyleCellDISBackground
But there is no more Webstyles in 2.0 … How can I achieve that with 2.0 ? I tried to read the documentation but it is not really clear. I understand there is a way to do with CSS but how ?
here’s an image of what it gives on the web browser …