In broad terms, since I have not done this myself, have your stepper’s change event write the new value to the dataProvider.  Then access the value from there using whatever logic necessary.

 

Tracy

 


From: [email protected] [mailto:[email protected]] On Behalf Of g8torjoe
Sent: Thursday, June 08, 2006 11:36 AM
To: [email protected]
Subject: [flexcoders] How do I access the value in this datagrid?

 

I have a datagrid pulling information from a SQL database. Each row
in the grid has an itemEditor with a numericStepper. I want to write
back to the database the values the user enters in that control. I
just can't quite figure out how to reference the different rows.

Code below, thanks in advance for your help!

Joe

<mx:DataGrid
id="dgPart"
dataProvider="{partList}"
editable="true"
width="100%">
<mx:columns>
<mx:Array>
<mx:DataGridColumn
id="partNum"
headerText="Part #"
dataField="PART_NO"
editable="false"
width="75" />
<mx:DataGridColumn
headerText="Part Name"
dataField="PART_NAME"
editable="false"
width="350" />
<mx:DataGridColumn
id="qty"
headerText="Quantity"
editorDataField="value"
width="75">
<mx:itemEditor>
<mx:Component>
<mx:NumericStepper
minimum="0"
maximum="5" />
</mx:Component>
</mx:itemEditor>
</mx:DataGridColumn>
</mx:Array>
</mx:columns>
</mx:DataGrid>

__._,_.___

--
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