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.
Unfortunately, activation email could not send to your email. Please try again.

Allow formatting of columns when protecting worksheet

Thread ID:

Created:

Updated:

Platform:

Replies:

51455 Nov 6,2006 12:09 PM Apr 24,2007 09:06 AM Windows Forms 6
loading
Tags: XlsIO
Elsa C. Wood
Asked On November 6, 2006 12:09 PM

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 01:36 AM

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 12:57 AM

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 05:35 AM

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 4, 2007 10:00 PM

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

Thanks
Terry

Melba Winshia [Syncfusion]
Replied On April 5, 2007 08:50 AM

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 09:06 AM

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.

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.

;