             case CollectionEventKind.REFRESH:
             case CollectionEventKind.RESET:
             {
-                resetColumns(IList(event.target).length);
+                columnCount = IList(event.target).length;
                 break;
             }
                 

    
    /**
     *  @private
     */
    public function set columnCount(value:int):void
    {
        if (value == _columnCount)
            return;
        
        // if we change the columnCount, clear everything
        // because we don't know which columns are valid anymore.
        resetColumns(value);
    }

    //----------------------------------

        recentNode = null;
        recentNode2 = null;   
    }
        
    /**
     *  Moves count number of rows from the fromRow index to the toRow
     *  index. This operation will not affect rowCount.
