             invalidateSize();
             invalidateDisplayList();
             
-            //TBD: clear selection and dimnsions
+            //TBD: clear selection
+            gridDimensions.clear();
+            if (_dataProvider)
+                gridDimensions.rowCount = _dataProvider.length;
             
             dispatchChangeEvent("dataProviderChanged");        
         }

            invalidateSize();
            invalidateDisplayList();
            
            //TBD: clear selection and dimnsions        
            
            dispatchChangeEvent("columnsChanged");        
        }

                }                                
            }
            
            gridDimensions.columnCount = _columns.length;
            
            if (gridSelection)
                gridSelection.columnsCollectionChanged(event);
            
