I have a data grid and there are 10 columns and 5 rows in that. I am trying to use itemRenderer = "myRenderer"

----- myRenderer.mxml ------

 

<?xml version="1.0" encoding="utf-8"?>

<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml">

   <mx:Label textAlign="right" text="{data.name}" alpha="0.1" color="#ff0033" width="100%" />

 

</mx:VBox>

 

I want to have different colors for each name. In the above code, as i am giving {data.name}, I am getting all the names with same color.

 

I want to access each element(cell) in that column(column name=name) and give each name with different color. Can somebody help me with this?

 

Thanks

 

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to