I have this data grid that holds a list of files. These files are
fileReferences that are selected by a user browsing the system. After the
select a file the data shows the name/ext/size. What I want is a 4th column
for the user to select a value from the drop down. I get an error with the
code below because there is no default value. I am not sure how I would go
about this because the fileReference object does not hold this data so I can
not give it a dataField. I am sure this is because Im a new, any help is
appreciated!


        <mx:DataGrid id="dgFiles" width="100%" height="100%"
dataProvider="{_files}" editable="true">
            <mx:columns>
                <mx:DataGridColumn headerText="File Name" dataField="name"
editable="false"/>
                <mx:DataGridColumn headerText="File Type"
dataField="extension" editable="false"/>
                <mx:DataGridColumn headerText="File Size" dataField="size"
labelFunction="bytesToKilobytes" editable="false"/>
                <mx:DataGridColumn headerText="Rating" editable="true">
                    <mx:itemEditor>
                        <mx:Component>
                            <mx:ComboBox editable="true">
                                <mx:dataProvider>
                                    <mx:String>1</mx:String>
                                    <mx:String>2</mx:String>
                                    <mx:String>3</mx:String>
                                    <mx:String>4</mx:String>
                                    <mx:String>5</mx:String>
                                </mx:dataProvider>
                            </mx:ComboBox>
                        </mx:Component>
                    </mx:itemEditor>
                </mx:DataGridColumn>
            </mx:columns>
        </mx:DataGrid>


-- 
Thank You
Dan

Reply via email to