1 Reply Latest reply on May 24, 2010 12:14 AM by Sree_D

    Refresh or empty the DataGrid

    Jayagopal Flex Level 1

      Hi,

           I have a datagrid i need to empty the datagrid or reload it or refresh the datagrid to view the update.Please help me

       

       

       

      Regards,

      Jayagopal P.S

        • 1. Re: Refresh or empty the DataGrid
          Sree_D Level 2

          You can try using enableAutoUpdate or refresh properties in ICollectionView if grid is to be refreshed after data is chnaged. If only one item is chnaged or updated in sourcedata the itemUpdated method is to be called below.

           

          ICollectionView(myGrid.dataProvider).itemUpdated( event.item, myGrid.columns[event.columnIndex].dataField );

           

           

           

          OR

           

          ICollectionView(myGrid.dataProvider).Refresh();

           

          OR

           

          ICollectionView(myGrid.dataProvider).enableAutoUpdate = true;

           

          Let me know if this is helpful.

           

           

          1 person found this helpful