         }
     }
 
-    /*
-     * For graphic elements we don't want to call validateNow() since it calls
-     * validateClient on the parent of the graphic element which is the GridLayer.  
-     * Every time a graphic element is added to the GridLayer a redraw is requested of the 
-     * GridLayer which includes validating all the existing graphic elements.  The redraw of the 
-     * GridLayer will be done later.
-     */
-    private function validateGraphicElement(graphicElt:IGraphicElement):void
-    {
-        graphicElt.validateProperties();
-        graphicElt.validateSize();
-        graphicElt.validateDisplayList();        
-    }
-    
     private function layoutGridElementR(elt:IVisualElement, bounds:Rectangle):void
     {
         if (bounds)

        if (enablePerformanceStatistics)
            startTime = getTimer();
        
        const validatingElt:IInvalidating = renderer as IInvalidating;
        if (renderer is IUITextField)  // TODO (hmuller) distinguish this special case differently
        {
            if (!isNaN(width) || !isNaN(height)) 
                renderer.setLayoutBoundsSize(width, height);
            if (validatingElt)
                validatingElt.validateNow();
        }
        else
        {
            if (!isNaN(width) || !isNaN(height))
            {
                if (validatingElt)
                {
                    if (validatingElt is IGraphicElement)
                        validateGraphicElement(IGraphicElement(validatingElt));
                    else
                        validatingElt.validateNow();
                }
                renderer.setLayoutBoundsSize(width, height);
            }
            if (validatingElt)
            {
                if (validatingElt is IGraphicElement)
                    validateGraphicElement(IGraphicElement(validatingElt));
                else
                    validatingElt.validateNow();
            }
        }
        
        renderer.setLayoutBoundsPosition(x, y);
        

import mx.events.CollectionEvent;
import mx.events.CollectionEventKind;
import mx.events.PropertyChangeEvent;
import mx.managers.ILayoutManagerClient;
import mx.managers.LayoutManager;

import spark.components.DataGrid;
import spark.components.Grid;
