2 Replies Latest reply on Jan 28, 2010 10:40 PM by sathiyabala

    How To delete flex datagrid rows using multiple selected checkbox in flex

    sathiyabala

      Hai


            I need to delete the rows in the datagrid, using the checkbox slection...


            for each row in the datagrid, there is a checkbox..


            by slecting multiple checkbox i need to delete those rows by calling a method...


            currently i am using this method for delete, but it deletes oly the finally selected checkbox


            this is my code


         

      private


      function removeTaskRecord():void

      {


      //Check if the checkbox for the task is selected



      if(generatedReportsgrid.selectedIndex>=0)

      {

       

      //Remove the task record from the Data Grid data provider


      tagreportonload.lastResult.Generatedschedule.Generateddate.removeItemAt(generate dReportsgrid.selectedIndex);


      }




      }




      can u help need it immediatly pl


      Thanks in Advance