             
             return selectionChanged;
         }
-                
+
         //----------------------------------
         //  selection for cells
         //----------------------------------    

        /**
         *  If <code>selectionMode</code> is <code>GridSelectionMode.MULTIPLE_ROWS</code>,
         *  sets the selection to the specfied rows and the caret position to
         *  the last row in <code>indices</code>.
         *  For all other selection modes, this method has no effect.
         * 
         *  <p>Each element in the Vector is an index in <code>dataProvider</code> 
         *  of an item to include in the selection.</p>
         *
         *  @param rowIndices Vector of 0-based row indices to include in selection. 
         * 
         *  @return True if no errors, or false if any of the <code>indices</code> 
         *  are invalid or the <code>selectionMode</code> is invalid. 
         *    
         *  @see spark.components.Grid#dataProvider
         * 

         *  @playerversion AIR 2.0
         *  @productversion Flex 4.5
         */
        public function setSelectedIndices(startRowIndex:int, endRowIndex:int):Boolean
        {
            const selectionChanged:Boolean = 
                gridSelection.setRows(startRowIndex, endRowIndex);
            if (selectionChanged)
            {
                caretRowIndex = endRowIndex;
                caretColumnIndex = -1;
                
                invalidateDisplayList()
