+ Start a Discussion
Geetha BGeetha B 

I am unable to delete the selected row from the page block table can any one help me

public void selectedrows()
   {
    integer rowNum ;
     for(wrapper wp : books)
     {
    
     if (wp.checked==true)
     {
        selectedBooks.add(wp.bks);
         rowNum = Integer.valueOf(apexpages.currentpage().getparameters().get('index'));
         system.debug('no of rows selected------------------'+rowNum);
         
        books.remove(rowNum );
      }}
     system.debug('no of rows selected'+selectedbooks);
   } 
 
RamuRamu (Salesforce Developers) 
Follow the guidelines as per the example in the below article

http://prats23.wordpress.com/2014/04/27/salesforce-dynamically-addingdeleting-rows-in-visualforce/