Hi!
I have ArrayCollection filled with String:
<mx:ArrayCollection id="dp">
<mx:String>String 1</mx:String>
<mx:String>String 2</mx:String>
....
</mx:ArrayCollection>
DataGrid's dataProvider is array collection above and DataGrid has
only one column.
What I want is to have ComboBox as inplace ItemRenderer/Editor, but I
don't know what to set in DataGridColumn's dataField property since
ArrayCollection contains String and not Object.
Something like this:
<mx:DataGrid dataProvider="{dp}" editable="true">
<mx:columns>
<mx:DataGridColumn headerText="My Strings" dataField="??????"
editorDataField="labelText" rendererIsEditor="true" >
<mx:itemRenderer>
<mx:Component>
<mx:ComboBox
dataProvider="{outerDocument.comboProvider}"
labelField="name" />
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
</mx:columns>
</mx:LgnDataGrid>
Any ideas how to do this?
Thanks,
Mario B.