Dynamically updating a datagrid

Dynamically updating a datagrid

I have an application that uses httpservice say "getdata" to get some data from a mysql database using a php file say "retrievedata.php", the data is JSON econded and then decoded and bound to an arraycollection say "dataarray", on the same application I update my mysql database by entering some value on textinput objects, these values are then sent using another httpservice say "senddata" and read by the php script for updating the mysql table say "updatedata.php"
the retrievedata.php file contains a query like select * from table where field="0"
the updatedata.php file contains a query like update set record="1" where id=receivedid (where the received id would be the id sent from the app to php thru the senddatda httpservice)
the arraycollection is then used as dataprovider to a simple datagrid.
When I lauch the app, the data is indeed retrieved, then I update my database using a click event and I can verify on mysql that the data has been indeed updated, I am expecting to see the datagrid removing the record(see my update query and my retrieve query)for which the field is 1 and dsiplay only those with a value field of 0...but seems like the datagrid is not realtime refreshing, pushing...? when I freload the application it displays only the wanted records...I want exactly the same behavior but without reloading the app....
I amnew to flex and I hope that I am not missing around with the terminuology and have made myself clear;...thanks for helping this problem has been torturing me and no way to find an answer on any forum and so on..
Thanks in advance for your help.

Add Comment

Put code snippets inside language tags:
[language] [/language]

Examples:
[javascript] [/javascript]
[actionscript] [/actionscript]
[csharp] [/csharp]

See here for supported languages.

Javascript must be enabled to submit anonymous comments - or you can login.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.