 import mx.events.CollectionEventKind;
 import mx.events.PropertyChangeEvent;
 
+import spark.components.DataGrid;
+import spark.components.GridContainerBase;
 import spark.components.Grid;
 
 use namespace mx_internal;

     */
    private function getGridDataProviderLength():uint
    {
        const dataProvider:IList = grid.dataProvider;
        return (dataProvider) ? dataProvider.length : 0;
    }    

    
    /**
     *  @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
     */
    private function isRowSelectionMode():Boolean
    {
