Hi,

use below component as itemRenderer for second column,

///////////////////////////////////////////////////////////////////////////////////////////////////////

<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"; width="100%"
height="100%">

        <mx:Script>
                <![CDATA[

                        override public function set data(value:Object):void
                        {
                                super.data = value;
                                if(data != null)
                                {
                                        // check for the database value and set 
text
                                        if(data.Status == "1")  statusLbl.text 
= "Active";
                                        else    statusLbl.text = "Inactive";
                                }
                        }

                ]]>
        </mx:Script>

        <mx:Label id="statusLbl" />

</mx:Canvas>

//////////////////////////////////////////////////////////////////////////////////////////////////

it may help you.

Regards,
v...@t

On May 26, 11:20 pm, Alekhya Krishna <[email protected]>
wrote:
> Hi,
>
> I have a datagrid, I get the data from the database. In my datagrid have the
> columns like
>
> MyDataGrid
>
> Title       ,       Status
>
> Rama              1
> krishna            0
> Venki              1
> yyyy                0
>
> This data i will get the data from the database.
>
> My Question is i want to display the data instead of Status like 0  - --->
> InActive
>
> 1 -------> Active
>
> I want the MyDataGrid result
>
> Title       ,       Status
>
> Rama              Active
> krishna            Inactive
> Venki              Active
> yyyy               Inactive
>
> Please help me,
>
> Thanks

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

Reply via email to