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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Allow formatting of columns when protecting worksheet

Thread ID:

Created:

Updated:

Platform:

Replies:

51455 Nov 6,2006 05:09 PM UTC Apr 24,2007 01:06 PM UTC WinForms 6
loading
Tags: XlsIO
Elsa C. Wood
Asked On November 6, 2006 05:09 PM UTC

Is there a way to allow a user to format a column (i.e. expand it) when protecting a worksheet? In Excel, this can be accomplished by Tools, Protection, Protect Sheet and selecting "Format columns."

Melba Winshia [Syncfusion]
Replied On November 7, 2006 06:36 AM UTC

Hi Elsa,

Currently it is not possible to format a column within a protected worksheet. But this feature has been added internally and it will be available in the next release. Could you please create a Direct-Trac incident regarding this so that I can provide you with a preview version.

Please let me know if you have any other questions.

Thanks,
Melba



Terrence Benade
Replied On April 2, 2007 04:57 AM UTC

Was this issue addressed as I cannot find it in Direct-Trac.

Not having this feature is a show stopper so any ideas on it possible relase would be much appreciated.

Regards
Terry

Melba Winshia [Syncfusion]
Replied On April 2, 2007 09:35 AM UTC

Hi Terry,

You can use the following code snippets to allow formatting of columns when the sheet is protected.

[C#]

//Protect sheet.
sheet.Protect("syncfusion", ExcelSheetProtection.FormattingColumns);

Here is the sample for your reference:

http://websamples.syncfusion.com/samples/XlsIO.Windows/F51455/main.htm

This feature has been added only in version 4.4.0.51.

Kindly let me know if you have any other questions.

Thanks,
Melba

Terrence Benade
Replied On April 5, 2007 02:00 AM UTC

Yip what happens if I need both row and column formatting?

Thanks
Terry

Melba Winshia [Syncfusion]
Replied On April 5, 2007 12:50 PM UTC

Hi Terry,

Thanks for the update.

I have logged a feature request regarding this issue.

Kindly let me know if you have any other questions.

Regards,
Melba

Melba Winshia [Syncfusion]
Replied On April 24, 2007 01:06 PM UTC

Hi Terry,

On further investigation, I found a way to allow both formatting of columns and rows when the sheet is protected. Please refer the following code snippet to achieve this:

//Protect sheet.
sheet.Protect("syncfusion", ExcelSheetProtection.FormattingColumns|ExcelSheetProtection.FormattingRows);

Here is the sample for your reference:

http://websamples.syncfusion.com/samples/XlsIO.Windows/F51455_1/main.htm

Kindly let me know if you have any other questions.

Thanks,
Melba

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;