I should qualify my "doesn't work for me" statement. Doug's suggestion
got me a bit further... For a non-cellrenderer column (LocAddr in this
case), I can "push" the data into the corresponding datagrid column.
But the state comboBox doesn't seem to budge.

function updateAddress(selAddress) {
  //mx.controls.Alert.show(selAddress);
  dgLocationInfo.dataProvider.editField(selIdx, "LocAddr", selState);
}

function updateStateCbx(selIdx,selState) {
  //mx.controls.Alert.show(selIdx + ': ' + selState);
  dgLocationInfo.dataProvider.editField(0, "LocState", selAddress);
}

<mx:DataGrid id="dgLocationInfo" editable="true"
dataProvider="{aryLoc}" rowCount="5"
change="updateGridRowModel(dgLocationInfo.selectedItem.LocNum,dgLocationInfo.selectedItem.LocAddr,dgLocationInfo.selectedItem.LocZip,dgLocationInfo.selectedItem.LocCity,dgLocationInfo.selectedItem.LocState)">
  <mx:columns>
    <mx:Array>
      <mx:DataGridColumn headerText="Address" columnName="LocAddr"
editable="true" width="225" />
      <mx:DataGridColumn headerText="State" columnName="LocState"
editable="false" cellRenderer="StateRenderer" width="120"/>
    </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 
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