1 Reply Latest reply on Feb 25, 2010 1:41 PM by Flex harUI

    how to get datagrid cell value after editing

    Alex-SM Level 1

      Hi,

       

      How can I get the value of a datagrid cell after it is being edited.   

      "selectedItem.<dataField_name>" gives me the cell value before editing:

       

       

      <mx:DataGrid id="mydatagrid" dataProvider="{mydata}" editable="true" itemEditEnd = "doEditing(event);" >
        <mx:columns>
          <mx:DataGridColumn headerText="name" dataField="name" editable="true"/>
        </mx:columns>
      </mx:DataGrid>


      private function doEditing(event:DataGridEvent):void
      {

           Alert.show(String(mydata.selectedItem.name));
      }

       

      Thansk,

      AS