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>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

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

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