I have a program that are multi-user and one of the window open data that are in a database. I have a button. If I click on it it put all the textbox enable to true and user can edit and save. When save, textbox become enable false.

What I want is when the user click the button to enable true the textbox to be able to lock the table that he will save the new data. And when he will save withe the save button I want to put back the table available to be written to everybody.

How do I do that?