Are you sure there isn't another datProvider set somewhere? I use "ADG.dataProvider = null" to clear datagrids out in a couple different areas and have never had a problem. also make sure you aren't reasigning the original DP somewhere. Greg
----- Original Message ---- From: mitek17 <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Thursday, January 3, 2008 12:25:14 PM Subject: [flexcoders] AdvancedDataGrid - how to clear contents? Hi all, How can I remove displayed contents in the ADG? For example ADG displays the results of the query - then after I change the parameters of the query server replies with no rows result. Dataprovider for grouping collection is null but the old contents of the ADG are still displayed. I tried to do the following: reset ADG dataprovider adg.dataprovider = null reset groupingCollection source groupingColl. source = null; groupingColl. refresh() ; invalidatePropertie s(); etc.. no luck - adg still holds previous data. Thanks in advance! Cheers, Dmitri. ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ