Miguel Diaz Valenzuela wrote:

now i need to refresh a datagrid after click on it. how can I do this?

You don't have to call removeAllColumns at all. Just set the dataProvider to the your web service's result, and call the send method.


<mx:DataGrid dataProvider="webservice.result" />
<mx:Button label="Go Get It!" click="webservice.send()" />

If you want to force a refresh, you could trigger the modelChanged event from the dataProvider, or simply do this:

datagrid.dataProvider = datagrid.dataProvider;

Manish




Reply via email to