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

 


From: [email protected] [mailto:[email protected]] On Behalf Of rgwilson26
Sent: Monday, November 21, 2005 2:52 PM
To: [email protected]
Subject: [flexcoders] combo box in a data grid

 

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)

<mxataGrid id="intitalFlowchartDataGrid">
 <mx:columns>
  <mx:Array>
   <mxataGridColumn headerText="Path #" columnName="Path" width="50" />
   <mxataGridColumn headerText="Seq #" columnName="Seq" width="50"/>
   <mxataGridColumn headerText="Description" columnName="Description" width="400" editable="true" />
   <mxataGridColumn 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>

   </mxataGridColumn>
  </mx:Array>
 </mx:columns>
</mxataGrid>




--
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
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to