a ver intenta algo asi en tu cellRenderer
Código:
class EleCntDat extends mx.core.UIComponent
{
var lblDato;
var owner;
var listOwner;
var getCellIndex : Function;
function EleCntDat ()
{
}
function createChildren () : Void
{
lblDato = createLabel ("lblDato", 10);
lblDato.styleName = listOwner;
lblDato.selectable = false;
lblDato.tabEnabled = false;
lblDato.background = false;
lblDato.border = false;
}
function size () : Void
{
lblDato._width = __width;
lblDato._height = __height;
}
function getPreferredHeight () : Number
{
return owner.__height - 4;
}
public function setValue (suggested : String, item : Object, selected : Boolean) : Void
{
if (item == undefined)
{
if (lblDato != undefined)
{
lblDato.removeMovieClip ();
delete lblDato;
}
return;
}
var index = getCellIndex ();
var sAux = listOwner.getColumnAt (index.columnIndex).colu mnName;
if ((sAux == "D0p") && (item.E0p == 1)) lblDato.color = 0x0000FF;
else if ((sAux == "D0s") && (item.E0s == 1)) lblDato.color = 0xFF0000;
lblDato.text = suggested;
}
}