Fix for the bug-2682:Showing wrong name in error popup while deleting al...

...l the rows from grid and any one row not matching delete criteria due to some dependency