4 Replies Latest reply on Nov 29, 2007 9:20 AM by Sreenivas R

    DataGrid binding issue

      Hi all,

      I have a data grid which I am populating with an array collection which is populated from an http service.

      The fields contain item editors "Numeric stepper"

      When I run the code the column populates properly but the binding between the field in the datagrid and the arrayCollection seems to stop working after the third row.

      In other words updating the value in the first three rows is mirrored in the AC
      Once beyond the 3rd row it doesn't seem like the change is recorded

      here is some of my code:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="myService.send()">
      <mx:HTTPService id="myService" url=" http://localhost/mroi/cnctda.php" useProxy="false" result="myMeasuresHandler(event);"/>


      import mx.rpc.events.ResultEvent;
      import mx.collections.ArrayCollection;
      private var myValues:ArrayCollection=new ArrayCollection();
      private function myMeasuresHandler(event:ResultEvent):void{
      myValues = event.result.data.values;

      <mx:DataGrid x="10" y="0" dataProvider="{myValues}" width="125" height="100%" editable="true">

      <mx:DataGridColumn headerText="Updated $2" backgroundColor="0xCCCCCC" editable="true" dataField="uspend" editorDataField="value">
      maximum="100" minimum="-100" stepSize=".01" />
      <mx:DataGrid x="130" y="0" dataProvider="{myValues}" width="50%" height="100%" editable="true">

      <mx:DataGridColumn headerText="Updated $" dataField="uspend" editable="true" />