2 Replies Latest reply on Nov 29, 2006 1:36 PM by ntsiii

    Saving Datagrid content

      I have an editable Datagrid, which loads Data through a Webservice. After adding and editing Data in the Grid I want to send the new/edited data back to a webservice and write back again to the db. How can I do that?

      And what form will the data have?

      Thanks in advance for help.
        • 1. Re: Saving Datagrid content
          Your datagrid's dataprovider should be an arrayCollection. Instead of using the result of your service as a provider, first put the data in an ArrayCollection. Now that your datagrid is reading from this, the array will change when the datagrid is changed. Now you have all of your new data in an array, which you can send back to your script to dump back in your db.
          • 2. Re: Saving Datagrid content
            ntsiii Level 3
            Yes, and the format of the data you send to the webservice will depend on what the web service requires.

            My personal preference for data exchange is XML strings. XML is XML and I don't have to worry about how the various parts of the communication chain are going to serialize or otherwise translate my data.