In my AdvancedDataGrid I reference the styleFunction.
Exampe:

<mx:AdvancedDataGrid  styleFunction="rowReadStyle">

*...in the SCRIPT tag...*

*public* *function* rowReadStyle(data:Object,
col:AdvancedDataGridColumn):Object

{

*   if* (data[*"read"*] == *'false'*){

*        return* {color:0xd90101, fontWeight:*"bold"*};

*    *}*else*{

*         return* {color:0x000000, fontWeight:*"bold"*};

    }

}


In an example for a DataGrid go to
http://www.magnoliamultimedia.com/flex_examples/DataGrid_withStyle/ ...right
click to ViewSource






On Mon, Dec 1, 2008 at 1:20 PM, John Waggener <[EMAIL PROTECTED]>wrote:

> Hi everyone,
>
> I hope you had a happy Thanksgiving!
>
> Problem:  I have a datagrid which is bound to an arrayCollection.  Some of
> the items in the Collection are marked as deleted.  I want those items to
> have a different background color.
>
> Can anyone point me in the direction of how I can achieve this?  I've
> explored the labelFunction property.  However, labelFunction allows for the
> manipulation of the data (text) and not the manipulation of styles.
>
> What can I do here?
>
> I've attached 2 graphics to illustrate...
>
> --
> Johnny Waggener
> 678-592-2650
> [EMAIL PROTECTED]
> www.johnnyillustrations.com/portfolio.htm
>
> -------------------------------------------------------------
> To unsubscribe from this list, simply email the list with unsubscribe in
> the subject line
>
> For more info, see http://www.affug.com
> Archive @ http://www.mail-archive.com/discussion%40affug.com/
> List hosted by FusionLink <http://www.fusionlink.com/>
> -------------------------------------------------------------



-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------

Reply via email to