             
             if (headerStyleName)
             {
-                if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)
-                {               
-                    var headerStyleDecl:CSSStyleDeclaration = 
-                        StyleManager.getStyleDeclaration("." + headerStyleName);
-                    if (headerStyleDecl)
+                for (var j:int = 0; j < numChildren; j++)
+                {
+                    header = getHeaderAt(j);
+                    if (header)
                     {
-                        // Need to reset the header style declaration and 
-                        // regenerate their style cache
-                        for (var i:int = 0; i < numChildren; i++)
-                        {
-                            header = getHeaderAt(i);
-                            if (header)
-                            {
-                                header.styleDeclaration = headerStyleDecl;
-                                header.regenerateStyleCache(true);
-                                header.styleChanged(null);
-                            }
-                        }
-                    }
-                }
-                else
-                {
-                    for (var j:int = 0; j < numChildren; j++)
-                    {
-                        header = getHeaderAt(j);
-                        if (header)
-                        {
-                            header.styleName = headerStyleName;
-                        }
+                        header.styleName = headerStyleName;
                     }
                 }
             }

        var header:Button = Button(headerRenderer.newInstance());
        header.name = HEADER_NAME_BASE + (numChildren - 1);
        
        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)
        {
            header.styleName = this;
        }
        
        var headerStyleName:String = getStyle("headerStyleName");
        if (headerStyleName)
        {
            if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)
            {
                 var headerStyleDecl:CSSStyleDeclaration = StyleManager.
                        getStyleDeclaration("." + headerStyleName);
                        
                if (headerStyleDecl)
                    header.styleDeclaration = headerStyleDecl;
            }
            else
            {
                header.styleName = headerStyleName;
            }
        }
 
        header.addEventListener(MouseEvent.CLICK, headerClickHandler);

import mx.core.Container;
import mx.core.ContainerCreationPolicy;
import mx.core.EdgeMetrics;
import mx.core.IDataRenderer;
import mx.core.IDeferredContentOwner;
import mx.core.IFactory;
