Dale, use the ArrayCollection API to update the item (probably
setItemAt()).  Simply assigning a value to selectedItem doesn't
displatch the events necessary to make the DG UI update.

 

refresh() *is* a method on the AC.  Calling that should also work (but
it may cause a full redraw, I don't recall.)  Why do you say it is not
available?  It is listed in the docs.

 

Tracy

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dale Fraser
Sent: Tuesday, January 15, 2008 5:43 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DataGrid Refresh

 

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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Max Frigge
Sent: Tuesday, 15 January 2008 6:24 PM
To: flexcoders@yahoogroups.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]>
To: flexcoders@yahoogroups.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

 

 

 

________________________________

Looking for last minute shopping deals? Find them fast with Yahoo!
Search.
<http://us.rd.yahoo.com/evt=51734/*http:/tools.search.yahoo.com/newsearc
h/category.php?category=shopping> 

 

Reply via email to