You need to sign in to do that
Don't have an account?

How to delete row from pageblocktable
Hi Guys,
I used same functionality in another page its working fine. But i am using in another page its throwing an error msg when click on Del row button. Please help me out this problem very urgent.
Apex Class:
public void delrow(){
deletestudentslist = new List<students>();
Indexnum = Integer.valueof(ApexPages.currentPage().getParameters().get('index'));
del = stdlist.remove(Indexnum);
deletestudentslist.add(del);
}
VF Page:
<apex:column>
<apex:commandlink value="Delete Row" action="{!delrow}" rerender="d">
<apex:param value="{!rownum}" name="index" />
</apex:commandlink>
</apex:column>

I used same functionality in another page its working fine. But i am using in another page its throwing an error msg when click on Del row button. Please help me out this problem very urgent.
Apex Class:
public void delrow(){
deletestudentslist = new List<students>();
Indexnum = Integer.valueof(ApexPages.currentPage().getParameters().get('index'));
del = stdlist.remove(Indexnum);
deletestudentslist.add(del);
}
VF Page:
<apex:column>
<apex:commandlink value="Delete Row" action="{!delrow}" rerender="d">
<apex:param value="{!rownum}" name="index" />
</apex:commandlink>
</apex:column>
I suggest debug the value of {!rownum} .Hope it is not sending NULL.
Kind Regards,
Raja
Hi Chandra,
Yes..its always passing 0 value. Param is not passsing index values.
Why it is not passing?
Kind Regards,
raja