You need to use a cell renderer. This
particular one has been done many times.
Look at the samples that come with Flex,
and search the archives here and the various other sites, maybe even google.
Tracy
I would
like to know how to put a combo box in on cloumn of a datagrid. I would like
the combobox to allow the user to pick from two values on the last column of
the datagrid when each row is populated.
Somthing
like this. (but this does not work)
<mx
ataGrid
id="intitalFlowchartDataGrid">
<mx:columns>
<mx:Array>
<mx
ataGridColumn
headerText="Path #" columnName="Path" width="50"
/>
<mx
ataGridColumn headerText="Seq
#" columnName="Seq" width="50"/>
<mx
ataGridColumn
headerText="Description" columnName="Description"
width="400" editable="true" />
<mx
ataGridColumn
headerText="BoxType" columnName="BoxType">
<mx:ComboBox
textAlign="left" id="cmbBoxType">
<mx:dataProvider>
<mx:Array>
<mx:String></mx:String>
<mx:String>Box</mx:String>
<mx:String>Notes</mx:String>
</mx:Array>
</mx:dataProvider>
</mx:ComboBox>
</mx
ataGridColumn>
</mx:Array>
</mx:columns>
</mx
ataGrid>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS