0 Replies Latest reply on Feb 26, 2007 9:05 PM by diegobu

    Getting all data from a datagrid

      Is there a way to get all the data from a datagrid?
      I have a datagrid where I can drop data from a second datagrid.
      I would like to send all objects from the datagrid to a web service function

      <mx:DataGrid id="myDataGrid" dropEnabled="true">
      <mx:DataGridColumn dataField="fieldOne"/>
      <mx:DataGridColumn dataField="fieldTwo"/>

      <mx:Button id="myButton" lable="Send" click="ws.sendGridData(myDataGrid.dataProvider" />

      When I click on the button only the first row is sent to the service.
      Is there a way to send all rows?