How to make a Spreadsheet cell read-only

1 Answer 221 Views
Spreadsheet
Ian
Top achievements
Rank 2
Bronze
Iron
Iron
Ian asked on 14 Mar 2023, 02:29 PM

How do I make a cell or cell ranges read-only ?

I want to show the user the cells values, but don't want them to be able to edit the data.

Thanks

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 15 Mar 2023, 07:26 AM

Hello Ian,

You can use worksheet protection. Detailed information is available here: SpreadProcessing - Worksheet Protection.

Do not hesitate to contact us if you have other questions.

Regards,
Dimitar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Ian
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 15 Mar 2023, 08:44 AM

Thanks  - I found this article, but it seems a bit heavy for what I need.

Is there an option to just lock a range of cells? Would I need to lock everything, using a password which I don't share with the user, then un-lock everything except the cells that I need to keep locked ?

Dimitar
Telerik team
commented on 15 Mar 2023, 09:10 AM

Hi Ian

I am afraid there is no other way. To unlock specific ranges you can set the IsLocked property of the cells (true for all cells by default)

Let me know if I can assist you further.

Ian
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 15 Mar 2023, 09:36 AM

Thanks Dimitar,

 So is my approach correct?

1. Lock the sheet, but don't tell the user the password

2. ...which will lock everything

3. Unlock everything except the bits I want locked?

Dimitar
Telerik team
commented on 16 Mar 2023, 12:31 PM

Hi Ian

I would switch 1 and 3 so the locking is the last step.

Do not hesitate to contact us if you have other questions.
Tags
Spreadsheet
Asked by
Ian
Top achievements
Rank 2
Bronze
Iron
Iron
Answers by
Dimitar
Telerik team
Share this question
or