Please see below line of code it will really help you

package ItemRenderers

{

    import mx.controls.Label;

    import mx.controls.dataGridClasses.DataGridListData;

    public class RemainGridCellColor extends Label {

        override protected function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void

         {

            super.updateDisplayList(unscaledWidth, unscaledHeight);

            if (data != null && listData != null &&
(data[DataGridListData(listData).dataField] < 0))

            {

                 setStyle("color", 0xFF0000);

             }

             else

             {

                        setStyle("color",0x000000);

             }



        }

      }

}


On Thu, May 28, 2009 at 10:41 PM, Firoz <firoz...@gmail.com> wrote:

>
> Hi,
>
>  i am using <mx:AdvancedDataGridGroupItemRenderer> as a renderer for
> a advanced datagrid.
>
>  i want to show the text as *somename.  "*" should be in red color.
>
>  Is it possible using this renderer?
>
>
> Any body plz help me.
>
>
> Thanks,
> -Firoz
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to