Skip to Content
0
Former Member
Sep 07, 2007 at 05:39 AM

Delete Multiple records in Table?

47 Views

Hi ..

I need to perform delete operation in my table with multiple selection.

My coding is..

for(int i=wdContext.nodeDetails2().size()-1;i>=0;i--)

{

if(wdContext.nodeDetails2().isMultiSelected(i) || wdContext.nodeDetails2().getLeadSelection()==i)

{

wdContext.nodeDetails2().removeElement(wdContext.nodeDetails2().getDetails2ElementAt(i));

}

}

When i delete first record, It works fine and multiple selection also works fine.

But when i select last record(only one) to delete, Then All the records get deleted. ???? Why this happens???

Anybody help to solve this probelm..

Thnx in advance..

Regards,

GS