The best way you could dispatch CollectionEvent.CHANGE event. It will 
refresh DG definitely.

grid.dataProvider.dispatchEvent(new 
CollectionEvent(CollectionEvent.CHANGE));


Dale Fraser wrote:
> validateNow does not work
>
>  
>
> refresh does not seem to be available on my dataProvider which is a variable
> array collection.
>
>  
>
> If I redo the binding
>
>  
>
> gridName.dataProvider = variableName;
>
>  
>
> This works, but it redisplays the whole grid and looses your position within
> the data.
>
>  
>
> Regards
>
> Dale Fraser
>
>  
>
> http://learncf.com
>
>  
>
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Max Frigge
> Sent: Tuesday, 15 January 2008 6:24 PM
> To: [email protected]
> Subject: Re: [flexcoders] DataGrid Refresh
>
>  
>
> Hey I am not quite sure about this, but 
> it should be either:
>
> yourDataProvider.refresh(); 
>
> or
>
> you could try dataGrid.validateNow();
>
>
> HTH (and I am not telling any crap ;)
>
> ----- Original Message ----
> From: Dale Fraser <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Tuesday, January 15, 2008 4:16:07 PM
> Subject: [flexcoders] DataGrid Refresh
>
> I have a datagrid and am programmatically updating some entries in the
> selected row.
>
>  
>
> I have tried both
>
>  
>
> selectedItem. columnName = "blah"
>
>  
>
> and changing the bound dataProvider.
>
>  
>
> Both work, but the grid does not refresh. If I do a column sort it refreshes
> and I see the changed data.
>
>  
>
> Regards
>
> Dale Fraser
>
>  
>
> http://learncf. com
>
>  
>   

Reply via email to