how to refresh AdvancedDataGrid in flashbuilder 4, getting data from webservice
I have tried many things like below to get my grid updated when it gets data from webservice ,

 

    myGridName.ValidateNow(), 
     myGridName.InvalidateList(), 
     if(myGridName.updateCompletePendingFlag)

 the problem is I have two buttons that can show hourly, and daily data in one grid, when activating daily button, I got the data in the grid but with delay of maybe 2 to 5 seconds(to get data from webservice) and within this period if user clicks on hourly button, to see the hourly data, then user will see the daily data attached to the end of the hourly data in the grid, please notice that there is just one grid. the problem is I don't know how much to wait for the first set of data to show up on the grid (daily data) and then enable all other buttons so user can only just choose Hour button when all the daily data has been shown in the grid, so when user click on hour button, the daily data will not attached to the end of hourly data in the grid.


any help is appreciated

 
how to refresh AdvancedDataGrid in flashbuilder 4, getting data from webservice
===

I have tried many things like below to get my grid updated when it gets data from webservice ,

 

    myGridName.ValidateNow(), 
     myGridName.InvalidateList(), 
     if(myGridName.updateCompletePendingFlag)

 the problem is I have two buttons that can show hourly, and daily data in one grid, when activating daily button, I got the data in the grid but with delay of maybe 2 to 5 seconds(to get data from webservice) and within this period if user clicks on hourly button, to see the hourly data, then user will see the daily data attached to the end of the hourly data in the grid, please notice that there is just one grid. the problem is I don't know how much to wait for the first set of data to show up on the grid (daily data) and then enable all other buttons so user can only just choose Hour button when all the daily data has been shown in the grid, so when user click on hour button, the daily data will not attached to the end of hourly data in the grid.


any help is appreciated

 