Hi Subba,
Here is a very simple example of how to do that:
http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectID=443
You can right-click on the example to see the code. I hope that this helps you,
Tim Hoff
--- In [email protected], "Subba Chalamalasetty" <[EMAIL PROTECTED]> wrote:
>
> 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
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

