Hello

You have to use same dataField propery of the DataGrid to the List.

sample example ....

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="vertical" >

        <mx:Script>
                <![CDATA[
                        import mx.collections.ArrayCollection;
                        import mx.events.FlexEvent;

                        [Bindable]
                        private var dataArr : ArrayCollection = new 
ArrayCollection
                        ([
                                
{label:"Flex",value:"1111"},{label:"Air",value:"2222"},
                                
{label:"FMS",value:"3333"},{label:"Flash",value:"4444"}
                        ])

                ]]>
        </mx:Script>

        <mx:DataGrid height="200" width="200" dataProvider="{dataArr}"
dragEnabled="true">
                <mx:columns>
                        <mx:DataGridColumn headerText="Adobe" dataField="label" 
/>
                        <mx:DataGridColumn headerText="Value" dataField="value" 
/>
                </mx:columns>
        </mx:DataGrid>

        <mx:List height="200" width="200" dropEnabled="true">
                <mx:itemRenderer>
                        <mx:Component>
                                <mx:HBox horizontalGap="10" >
                                        <mx:Label text="{data.label}" />
                                        <mx:Label text="{data.value}" />
                                </mx:HBox>
                        </mx:Component>
                </mx:itemRenderer>
        </mx:List>

</mx:Application>

Thanks
Virat Patel

On Apr 24, 8:10 pm, Mohamed Feki <[email protected]> wrote:
> Hello,
> I'm just starting developing flex, I'am trying to move data from Data
> Grid to a List by using Drag and Drop, but the mooved object appear as
> an [object object] in the List , how can i extract this object into
> different fields,
> thanks in advance
--~--~---------~--~----~------------~-------~--~----~
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