     }
 
     /**
-     *  If the <code>selectionMode</code> is <code>GridSelectionMode.MULTIPLE_ROWS</code> or
-     *  <code>GridSelectionMode.MULTIPLE_CELLS</code>, selects all the rows or
-     *  cells in the grid.
-     * 
-     *  @return <code>true</code> if the list of selected items has changed from the last call.
+     *  If the <code>selectionMode</code> is <code>GridSelectionMode.MULTIPLE_ROWS</code> 
+     *  selects all the rows in the grid and if <code>selectionMode</code> is 
+     *  <code>GridSelectionMode.MULTIPLE_CELLS</code>, selects all the cells in
+     *  columns with <code>visible</code> set to <code>true</code>.
+     * 
+     *  @return True if the selection changed.
      * 
      *  @langversion 3.0
      *  @playerversion Flash 10

    private var _selectionLength:int = 0;    
    
    /**
     *  If the <code>selectionMode</code> is either 
     *  <code>GridSelectionMode.SINGLE_ROW</code> or
     *  <code>GridSelectionMode.MULTIPLE_ROWS</code>, contains the number of
     *  selected rows.
     *  If the <code>selectionMode</code> is either 
     *  <code>GridSelectionMode.SINGLE_CELL</code> or
     *  <code>GridSelectionMode.MULTIPLE_CELLS</code>, contains the number of
     *  selected cells.  
     *  If the <code>selectionMode</code> is <code>GridSelectionMode.NONE</code>, 
     *  contains 0.
     * 
     *  @default 0
     * 
     *  @langversion 3.0
     *  @playerversion Flash 10

     */
    public function selectAll():Boolean
    {
        const maxRows:int = getGridDataProviderLength();

        if (selectionMode == GridSelectionMode.MULTIPLE_ROWS)
        {
            return setRows(0, maxRows);
        }
        else if (selectionMode == GridSelectionMode.MULTIPLE_CELLS)
        {
            const maxColumns:int = getGridColumnsLength();
            return setCellRegion(0, 0, maxRows, maxColumns);
        }
            
        return false;
     }
    
