You cannot use simple types (String, Number) in a DG. You have to use objects like:
<mx:Object label="String1" /> ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of mario.blataric Sent: Friday, March 21, 2008 4:00 AM To: [email protected] Subject: [flexcoders] ArrayCollection of String as single-column DataGrid provider 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.

