Hi All ,

         Need some help in deleting selected rows from grid. I am 
able to add rows to Grid. But unable to delete selected rows from 
Grid. Even user checks multiple rows its deleting only one row at a 
time. And one more  problem I am facing is its not retaining the 
values entered  by user if I add / delete rows to Grid.

   Here is the code what I tried for deleting and adding rows to Grid

public function addOtherIncome():void
 {
    incomeData.addItem({Charterer:'',incomeDesc:'',incomeAmt:''});
  }



 public function deleteIncome():void
  {
        //Alert.show("Inside Delete Item" + checkIncome.length );
          for(var j:Number=0;j<checkIncome.length;j++)
                {
                    Alert.show("inside of for "+ checkIncome
[j].selected);
                    if(checkIncome[j].selected==true)
                        {
                            incomeGridRow.height = 0;
                            incomeData.removeItemAt(j);
                        }
                }
                            
  } 


incomeData      ----- name of the data provider
 checkIncome     ----- name of the checkbox
 incomeGridRow   ----- name of the gridrow

     Anybody help me to solve these issues. I tried a lot to solve 
these issues. Thanx in advance

Thanks & Regards,
Siva Kumar

Reply via email to