How to disable the datagrid

Hi expert,
My UI page has a datagrid and a detail panel. the detail panel can edit the selected row of datagrid. if I edit an item on the detail panel (template form), then the selected row changes immediately in response to the detail panel edit. what I want are: when I edit detail panel, then related row in datagrid should not respond to the changes in the edited detail panel, when I click the save button, then the edited changes appear in datagrid.
How can I achieve this, thank you for helping this!
John

Hi @jzhu,

You will need to clone the selected item - this means to create a new instance of the class with the same property values. Then use the clone for your detail panel.