     //
     //--------------------------------------------------------------------------
    
+    //----------------------------------
+    //  grid
+    //----------------------------------
+    
+    private var _grid:Grid;
+    
+    /**
+     *  @private
+     */
+    public function get grid():Grid
+    {
+        return _grid;
+    }
+    
+    /**
+     *  This value is created by DataGrid/partAdded() and then set here.   
+     *  It is should only be set once.
+     * 
+     *  @default null
+     * 
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    public function set grid(value:Grid):void
+    {
+        _grid = value;
+    }
+    
     //----------------------------------
     //  preserveSelection
     //----------------------------------

    //  Methods
    //
    //--------------------------------------------------------------------------
    
    /**
     *  @private
     *  To connect the selection with its grid.  Can't be in the constructor
     *  since the selectionMode might be set before the grid part is added.
     */
    private function get grid():Grid
    {
        return gridOwner.grid;
    }
    
    /**
     *  @private
     */

    //  Class variables
    //
    //--------------------------------------------------------------------------
        
    /**
     *  @private
     *  Vector of rowIndexes that map to the dataProvider items.  If 
