DataGrid Master Detail Hierarchy - Refresh master row

Hello.

I'm using a grid with a DataGrid Master-Detail Hierarchy structure (Order, OrderDetails) with the following workflow:

I expand an Order to see the OrderDetails for editing/adding details.

I add a detail using a Modal Form.

When I click save in the Modal Form to edit an OrderDetail, the details grid gets refreshed to show the new changes.
-- up to this point everything works perfectly.

Now I need to solve step 4 - Refresh the master row while keeping it expanded:
4) Because in the master grid I have a Total column (which sums up the Total from the OrderDetails), I need the master row to be refreshed so that the Total column in the header gets updated.
Currently, I managed to do this, but the master row collapses, and I want it to stay expanded.

Thanks

You can try dbContext.Update(item) similar to this demo: