We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Enable 'Select unlocked cells' from ASP.NET in the generated Excel File.


Am using XLSIO Syncfusion to generate excel from C# code. How do i enable 'Select unlocked cells' for a protected worksheet. I do not want users to select locked cells


1 Reply

SR Sridhar Syncfusion Team April 29, 2013 04:58 AM UTC

Hi Suganya,

Thank you for using Syncfusion products.

We can acheive the above reported query using the below code with XlsIO.

Code Snippet[C#]:

IWorksheet worksheet = workbook.Worksheets[0];

//TODO:Please provide the code for unlock cells

worksheet.Protect("syncfusion", ExcelSheetProtection.UnLockedCells);

Please try the above code and let us know if this helps you.

Please go through the following online document for more details.



Please let me know if you require any further clarifications.


Live Chat Icon For mobile
Up arrow icon