There are a few ways to lock a row in Google Sheets. One way is to select the row you want to lock and then go to the "Review" tab and select "Protect sheet." This will bring up a dialog box with a few options. The first option is "Select who can edit sheet." By default, "Only me" is selected. You can change this to "Anyone with the link" if you want to share the sheet with others, or "No one" if you want to keep it private. The second option is "Select what users can do." By default, "Can edit and suggest changes" is selected. You can change this to "Can only view sheet" if you only want people to be able to view the data in the sheet but not edit it. The third option is "Require a password to edit." This is optional. If you check this box, people will need to enter a password to edit the sheet. The fourth option is "Hide formula bar." This is also optional. If you check this box, people will not be able to see the formulas in the sheet. Once you've made your selections, click "Protect sheet."
Another way to lock a row in Google Sheets is to use the "Protect range" function. With this function, you can select a range of cells and protect them with a password. To do this, select the cells you want to protect and go to the "Data" tab. In the "Data tools" section, click "Protect range." This will bring up a dialog box with a few options. The first option is "Select who can edit range." By default, "Only me" is selected. You can change this to "Anyone with the link" if you want to share the sheet with others, or "No one" if you want to keep it private. The second option is "Select what users can do." By default, "Can edit and suggest changes" is selected. You can change this to "Can only view range" if you only want people to be able to view the data in the range but not edit it. The third option is "Require a password to edit." This is optional. If you check this box, people will need to enter a password to edit the range. The fourth option is "Hide formula bar." This is also optional. If you check this box, people will not be able to see the formulas in the range. Once you've made your selections, click "Protect range."