Flash Builder (Flex 4): datagrid populated by XML, how can I add an image in some of the rows?

Posted by ufk on Stack Overflow See other posts from Stack Overflow or by ufk
Published on 2010-04-13T17:22:17Z Indexed on 2010/04/23 9:43 UTC
Read the original article Hit count: 912

Filed under:
|
|

I have a DataGrid table with columns name, phone. In column name I would like to add a picture near the name of the person. How can I add a picture in a datagrid row?

<fx:Declarations>
    <fx:XMLList id="people" xmlns="">
        <test>
            <name>moshe</name>
            <phone>555</phone>
        </test>
    </fx:XMLList>
</fx:Declarations>

<mx:DataGrid id="dg" color="0x323232" width="532" rowCount="10" top="10" left="10" DataProvider="{people}">
    <mx:columns>
        <mx:DataGridColumn dataField="name" headerText="person name"/>
        <mx:DataGridColumn dataField="phone" headerText="phone"/>
    </mx:columns>
</mx:DataGrid>

© Stack Overflow or respective owner

Related posts about flash-builder

Related posts about flex4