3 Replies Latest reply on Nov 7, 2011 6:22 AM by John Hall

    dataProvider.removeAll() is actually clearing out my database. This is bad.


      protected function custGrid_selectionChangeHandler(event:GridSelectionEvent):void

      {                     getDeviceByCustIDResult.token = deviceService.getDeviceByCustID(custGrid.selectedItem.cust_id);

      createDevBtn.enabled = true;

      issGrid.dataProvider.removeAll();                                                           }


      Is there any other way to clear a datagrid. Apparently clearing the dataprovider is bad.  This keeps actually removing the records in my database.


      I really need to clear that datagrid to ensure that I don't end up with orphan records in my database.