      *  @playerversion AIR 2.0
      *  @productversion Flex 4.5
      */
-    public function addSelectedIndex(index:int):Boolean
-    {
-        var selectionChanged:Boolean;
-        
-        if (grid)
-        {
-            selectionChanged = grid.addSelectedIndex(index);
-        }
-        else
-        {
-            selectionChanged = gridSelection.addRow(index);
+    public function addSelectedIndex(rowIndex:int):Boolean
+    {
+        var selectionChanged:Boolean;
+        
+        if (grid)
+        {
+            selectionChanged = grid.addSelectedIndex(rowIndex);
+        }
+        else
+        {
+            selectionChanged = gridSelection.addRow(rowIndex);
             if (selectionChanged)
             {
                 invalidateDisplayList()

    }
    
    /**
     *  @copy spark.components.Grid#allSelectedCells()
     *  
     *  @langversion 3.0
     *  @playerversion Flash 10
     *  @playerversion AIR 2.0
     *  @productversion Flex 4.5
     */
    public function allSelectedCells():Vector.<Object>
    {
        if (grid)
            return grid.allSelectedCells();
        else
            return gridSelection.allCells();
    }

     *  @playerversion AIR 2.0
     *  @productversion Flex 4.5
     */
    public function removeSelectedIndex(rowIndex:int):Boolean
    {
        var selectionChanged:Boolean;
        
        if (grid)
        {
            selectionChanged = grid.removeSelectedIndex(rowIndex);
        }
        else
        {
            selectionChanged = gridSelection.removeRow(rowIndex);
            if (selectionChanged)
            {
                invalidateDisplayList()
                dispatchFlexEvent(FlexEvent.VALUE_COMMIT);
            }
        }
        
        return selectionChanged;
    }
    
    /**
     *  @copy spark.components.Grid#setSelectedIndices()
     *  
     *  @langversion 3.0
     *  @playerversion Flash 10
     *  @playerversion AIR 2.0
     *  @productversion Flex 4.5
     */
    public function setSelectedIndices(rowIndices:Vector.<int>):Boolean
    {
        var selectionChanged:Boolean;
        
        if (grid)
        {
            selectionChanged = grid.setSelectedIndices(rowIndices);
        }
        else
        {
            selectionChanged = gridSelection.setRows(rowIndices);
            if (selectionChanged)
            {
                invalidateDisplayList()
                dispatchFlexEvent(FlexEvent.VALUE_COMMIT);
            }
        }
        
        return selectionChanged;
    }
    
    /**
     *  @copy spark.components.Grid#selectedIndices()
     *  
     *  @langversion 3.0
     *  @playerversion Flash 10
     *  @playerversion AIR 2.0
     *  @productversion Flex 4.5
     */
    public function selectedIndices():Vector.<int>
    {
        if (grid)
            return grid.selectedIndices;
        else
            return gridSelection.allRows();
    }
