 
         if (selectionMode == GridSelectionMode.NONE || 
             grid.caretRowIndex < 0 || 
-            grid.caretRowIndex >= getDataProviderLength() ||
+            grid.caretRowIndex >= dataProviderLength ||
             (isCellSelectionMode() && 
-                (grid.caretColumnIndex < 0 || 
-                    grid.caretColumnIndex >= getColumnsLength())))
+                (grid.caretColumnIndex < 0 || grid.caretColumnIndex >= columnsLength)))
         {
             // We're not going to handle this event, so give the scroller a chance.
             if (scroller && (scrollerEvent != event))

     *  accessibilityImplementation, rather than the DataGrid's, so that the MSAA 
     *  representation of descendant components will not be "obscured" by DataGridAccImpl.   
     * 
     *  @see #createChidlren(), #setFocus(), #isOurFocus().
     */ 
    mx_internal var focusOwner:UIComponent;
    
    
    /**
     *  @private

        if (event.keyCode == Keyboard.A && event.ctrlKey)
        { 
            selectAllFromKeyboard();
            event.preventDefault();
            return;
        }

