Yeah, I typed directly in Thunderbird so there's no hints like Flex 
Builder. ;)

Doesn't matter.  Good luck!
George

Dale Fraser wrote:
> George,
>
>  
>
> You are the man, that works, except for one error which I fixed
>
>  
>
> Should be
>
>  
>
> entriesGrid.dataProvider.dispatchEvent(new
> CollectionEvent(CollectionEvent.COLLECTION_CHANGE));
>
>  
>
> not
>
>  
>
> entriesGrid.dataProvider.dispatchEvent(new
> CollectionEvent(CollectionEvent.CHANGE));
>
>  
>
>  
>
> Regards
>
> Dale Fraser
>
>  
>
> http://learncf.com
>
>  
>
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of George
> Sent: Wednesday, 16 January 2008 9:55 AM
> To: [email protected]
> Subject: Re: [flexcoders] DataGrid Refresh
>
>  
>
> 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:flexcoders%40yahoogroups.com>
>>     
> [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> ]
> On
>   
>> Behalf Of Max Frigge
>> Sent: Tuesday, 15 January 2008 6:24 PM
>> To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
>> 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] <mailto:dale%40fraser.id.au> >
>> To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
>> 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