Move entity to different child within child edit screen

I am curious if you can suggest a best practice for this scenario:

Order contains multiple Locations. Each location contains multiple Widgets.

Order screen with composition for list of Locations.
Within each Location child edit screen, is list of Widgets.

I wish to be able to select a Widget within the Location edit screen, and change it to belong to a different Location, within the overall data context of the Order edit.

For example, Order has Location A and Location B. Location A has widgets W1, W2, W3. Location B has widgets W4, W5, W6.
While within the edit screen for Location A, I want to select W2 in the table of widfgets and in a dialog say to move it to Location B. This should cause it to disappear from the the table, but when I close that location edit screen and select the other location B and open edit screen for same, the widget W2 should now appear in that screen.

I want to basically change the widget to a different Location’s widget collection, while within its current location’s edit screen, but I’m having trouble getting the correct UI events to take place.

I hope the above makes sense without having to provide a sample application.