Clint Tredway wrote:
> I need an example of using a combo box in a datagrid.. I have looked
> around and cant find one..
> 

<mx:DataGrid id="fileDatagrid" x="0" y="0" width="715" height="130" 
dataProvider="{files_datagrid}" change="putVideo()" selectedIndex="0">
                                                <mx:columns>
                                                        <mx:DataGridColumn 
headerText="Clip" dataField="path"/>
                                                        <mx:DataGridColumn 
id="statuscolumn" headerText="Status" 
width="160" dataField="status">
<mx:itemRenderer>
        <mx:Component>
                <mx:ComboBox dataProvider="{parentDocument.file_status}" 
labelField="status" >
                <mx:id>filestatuscb</mx:id>
                </mx:ComboBox>
        </mx:Component>
</mx:itemRenderer>
                                                        </mx:DataGridColumn>
                                                </mx:columns>
                                        </mx:DataGrid>


This will put a combobox in the datagrid column, in this code it grabs 
an array with a weborb/mysql query to an array collection. It also grabs 
a preset array with what options populate the combobox. This seems to 
give the added bonus that whatever the datagrid item it will set the 
combobox to the database pulled setting.

hth

Impudent1
LeapFrog Productions


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to