# Datagrid remove all?

**URL:** <https://forum.kirupa.com/t/datagrid-remove-all/322815>\
**Category:** Uncategorized\
**Created:** [June 4, 2011, 6:14am UTC](https://forum.kirupa.com/t/datagrid-remove-all/322815 "2011-06-04T06:14:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![asthyanax](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@asthyanax](https://forum.kirupa.com/u/asthyanax)\
**Post date:** [June 4, 2011, 6:14am UTC](https://forum.kirupa.com/t/datagrid-remove-all/322815/1 "2011-06-04T06:14:21Z")

</div>

Hi,  
I’ve been trying to remove all data from a datagrid to avoid having the old values plus the new values all the time but it doesn’t seem to work  
I feed a datagrid from a xml and each time I try to load a new one, it simply adds to the previous.  
I tried:  
myDatagrid.removeAllColumns();  
myDatagrid.dataProvider.removeAll();  
Before adding new data but I still have the old values PLUS the new ones.  
Any idea on what I’m missing?  
Thanks a lot:)
