Grid row deleted but field value is not updated , before form save

Hi , I deleted the row from grid view(field name:qty) , but it’s not updated in total empty quantity field,
Before delete the row from grid(table)


After delete the row from grid , total empy quantity is not updated

Thanks in advance.