Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
925
Inconsistent behavior when deleting rows with protections
posted

Hello,

 

We´ve come across an inconsistency in the behavior when deleting rows. Our scenario:

We have a spreadsheet which the user needs to fill. So we want the user to be able to insert, edit and delete data, but we wanted to protect the first row (column headers) from editing and we also want to protect the unused columns to prevent the user from adding columns that we are unable to read. So we decided to protect the worksheet, unprotect all known columns and then protect the first row.

It all works fine now, except when the user wants to delete a (data-) row. When protecting the worksheet, we set the value of allowDeletingRows to true.

There are two possibilities to delete a row:

  • Rightclick the row-index on the left and choose delete
    • This results in an error-message saying I am trying to delete protected cells.
  • Rightclick any of the editable data-cells and choose delete – entire row
    • This results in the row getting deleted. (Which would be our expected result.)

 

I created a minimal sample application to test the problem. 5228.SpreadsheetMinimalPrototype.zip

Once the sample application opened, there are two rows. The header of the columns and below the first row of sample-data. The headers are protected and the data rows are editable. Please try the steps above for the data-row. 

Which way is the intended way to work for this scenario?

best regards,

Tomas