refresh / reload a datagrid in flex

user120118 picture user120118 · Jul 10, 2009 · Viewed 11.4k times · Source

I am using a datagrid. It has itemEditor components, combo boxes, etc. as aprt of columns. Ideally datagrid.invalidateList() method works to reload the datagrid with new dataProvider data.

But, for me it is appending to the old data and new data gets added below the older data. I am not able to fix this reload of datagrid.

Answer

verveguy picture verveguy · Jul 12, 2009

Use ArrayCollection, not Array! ArrayCollection provides all the change notification machinery you need. Array does not.