                     var dataItem:Object = getDataProviderItem(rowIndex);
                     var column:GridColumn = getGridColumn(colIndex);
                     var factory:IFactory = column.itemToRenderer(dataItem);
-                    renderer = allocateGridElement(factory) as IVisualElement;
+                    renderer = allocateGridElement(factory) as IVisualElement;                   
                 }
             
                 if (renderer.parent != itemRendererGroup)

    {
        renderer.visible = visible;
        
        const gridRenderer:IGridItemRenderer = renderer as IGridItemRenderer;
        const gridColumn:GridColumn = getGridColumn(columnIndex);
        

import mx.core.mx_internal;
import mx.events.CollectionEvent;
import mx.events.CollectionEventKind;
import mx.styles.ISimpleStyleClient;

import spark.components.ColumnHeaderBar;
import spark.components.DataGrid;
