Anatole, thanks for writing back. Sorry this is a little beyond me. HOw would you use the code with a list renderer. what do I compare against? { Reference( data ).name }?
Sorry that I am not following. Jeff --- In flexcoders@yahoogroups.com, "Anatole Tartakovsky" <[EMAIL PROTECTED]> wrote: > > You need to prevent itemRenderers from being reused. Here is a piece of my > old code to deal with it (in DataGrid) > > override protected function > addToFreeItemRenderers(item:IListItemRenderer):void > { > if (columnMap[item.name] && > columnMap[item.name] is > com.theriabook.controls.dataGridClasses.DataGridColumn && > columnMap[item.name].preventRendererReuse) { > delete rowMap[item.name]; > > if (columnMap[item.name]) { > var c:Object = columnMap[item.name]; > delete columnMap[item.name]; > } > item.parent.removeChild(DisplayObject(item)); > } else > super.addToFreeItemRenderers(item); > > } > > Complete source is in the old book code: > > http://samples.faratasystems.com/AdvancedDataGrid/index.html > > HTH, > Anatole Tartakovsky > Farata Systems > On Tue, Jun 24, 2008 at 12:06 PM, Body Works Studio <