More than one line not deleting from grid

Dear All,

I am using Ax2012R2.

I have one customized form, in that in line level we have one grid, in action pane there is delete command button, i select multiple lines in line level and trying to delete, but at a time only one line deleting,

Is there any property for this, or we need to manipulate with code, same command button working fine in header level, able to delete multiple lines at a time.

Thanks

Sreenu

You don’t have to change any code. Can you put a screen shot of your button properties?

Do you have any code in delete/validate delete that is preventing the deletion of other records?

Hi Kranthi,

This screen shot for command button properties.

Grid properties.

There is a code in datasource level delete method.

IEFumigationTable_ds.refresh();
IEFumigationTable_ds.reread();

IEFumigationLine_ds.refresh();
IEFumigationLine_ds.research(true);
IEFumigationLine_ds.setCurrent();

Thanks

Sreenu

The screen shot does not show all the properties.

Why do you need to call the above lines?

Try by calling below,

IEFumigationLine_ds.reread();

IEFumigationLine_ds.refresh();

Working fine, thanks.

Verify the answer (for the helpful replies)