Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Commented Unassigned: Locking cells doesn't work [9381]

$
0
0
Hello,

Looks like Worksheet.Cell(i,j).Style.Protection.Locked = true does not work like intended and the field is still editable. Is there something I am missing?

Thanks
Comments: The same way you would do it in Excel. Unlock the entire worksheet and then lock individual cells. worksheet.Protect(); worksheet.Style.Protection.Locked = false; worksheet.Cell("A1").Style.Protection.Locked = true;

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>