Define a custom cell renderer for that column.

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Jatin Nanda
Sent: Wednesday, April 11, 2007 4:41 PM
To: [email protected]
Subject: Re: [flexcoders] Re: Flex 1.5 Question



HI Doug,

Thanks for the tip - but unfortunately it affects the whole row, not
just one cell ...

Tried changing the bgcolor, which doesn't seem to work either. Any other
thoughts?

Thanks in advance, 

J


On 11 Apr 2007 12:58:15 -0700, Doug Lowder <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote: 

        In 1.5, you can do this directly from the datagrid with the 
        setPropertiesAt() method - no cell renderer required.
        
        myGrid.setPropertiesAt(rowIndex, {backgroundColor: 0xFF0000});
        
        If you must use a cellrenderer, just set the background of your 
        container (canvas, hbox, or what have you) in the setValue()
method, 
        based on the row data.
        
        --- In [email protected]
<mailto:flexcoders%40yahoogroups.com> , "Jatin Nanda" <[EMAIL PROTECTED]> 

        
        wrote:
        >
        > Dear All,
        > 
        > I need to know how you use a custom cell renderer to change
the
        > background colour of a cell in a grid.
        > 
        > Plenty of exampled for Flex 2.0, but I need to do it in Flex
1.5
        > 
        > Know anyone who might have an answer?
        > 
        > Thanks in advance,
        > 
        > 
        > J
        >
        
        

        

        


 

Reply via email to