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.

Create a style object

Thread ID:





72978 Apr 14,2008 02:30 PM Apr 18,2008 08:49 AM Windows Forms 1
Tags: XlsIO
Asked On April 14, 2008 02:30 PM

I am working on performance issues and I was wondering if there was a way that I could create a Style object that is not necessarily part of the sheet.

I want to set some of the properties of the style up front and then depending on what stage I am at, I may change those preset properties and may set others.

From what I can see in the samples, a style is added to the style collection of the workbook. The problem I see is that if I change say the FONT to bold then any previously processed cell using the style will change as well.


Yavanaarasi G [Syncfusion]
Replied On April 18, 2008 08:49 AM

Hi Kelley,

Sorry for the delay in responding.

I am able to see the issue. But this is not an XlSIO issue. It is the default behaviour of Excel. At first you added one style and apply for a particular cell. Again you apply the same style to another cell with some modification it also affect the previous formatting. Because the styles formatting are changed. Please refer the video clip:


Please try to check in Ms Excel and let me know if you have any other concerns.



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.