Refreshing grid after adding a new record to the underlying datamaster reset any edits in the grid

Michael Heilman shared this question 5 years ago
Answered

I use a button to add a new record to a datamaster and then refresh the datagrid to which the datamaster is bound. The new record shows up just find, but if there were any edits to the existing records in the datagrid, those are reset with the refresh.


I want the user to be able to edit a record in the datagrid, then add a new one and edit it, without clearing out their edits in the previous record.


Thanks for any help you can provide.


Thanks,


Mike

Comments (3)

photo
1

Take a look at this tutorial:


http://www.justinmind.com/usernote/te...

photo
1

Thanks for your prompt reply.


I am following the tutorial for adding a new record to a datagrid, doing the two steps of calling a New action for the datamaster, and then refreshing the datagrid with the datamaster. This creates and shows the new record as expected, but gets rid of any editing that has taken place in the data grid.


If you are saying that I need to add a Modify event to every edit of the datagrid in order to persist the changes there, I tried that to no avail.


I have uploaded a file to the support portal. The page I am having trouble with is called viewlist Lineitems.


Thanks for your help.

photo
1

Thanks, I discovered what I had done wrong in wiring up the grid and calling the Modify.