         // based on the dataProvider. Thus setting of columns by dataProvider
         // falls in the same cycle of commitProperties and if moved above will 
         // not get picked unless a second call to commitProperties come
-        if(groupedColumnsChanged)
+        if (groupedColumnsChanged)
         {
             columnGrouping = true;
             columnsChanged = false;


            super.columns = getLeafColumns(_groupedColumns.slice(0));
        }
        else if(columnsChanged)
        {
            columnGrouping = false;
            columnsChanged = false;

            removeOldHeaders();

            super.columns = _columnsValue;
        }

        if (displayItemsExpandedChanged)
        {
            displayItemsExpandedChanged = false;
            // if displayItemsExpanded is set to true, then expand all the items.
            if (displayItemsExpanded)
                expandAll();

     */
    override protected function updateVisibleHeaders():Array
    {
        if (!columnGrouping)
            return super.updateVisibleHeaders();
        else
            return updateVisibleHeaderInfos(headerInfos).infos;
