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

Custom Colors

Thread ID:





94981 Jun 15,2010 03:02 PM UTC Jun 17,2010 03:32 AM UTC Silverlight 3
Tags: XlsIO
Willis Logwood
Asked On June 15, 2010 03:02 PM UTC

I tried to do a custom RGB color by using the CellStyle.Color property, and noticed that it didn't work. When I looked to see if the Silverlight version supported custom colors I noticed it said "Indexed". I'm not sure what this means but if it's possible, can I have an example of how I can do custom colors?

Thank you.

Geetha M [Syncfusion]
Replied On June 16, 2010 09:59 AM UTC

Hi Willis,

Thank you for your interest in Syncfusion products.

Excel 2003 file format allows only 64 colors available in Excel Palette. All those colors are available via CellStyle.ColorIndex property. However, if you want to write any custom color, they will be indexed, that is, it will be converted to nearest color available in Excel Palette. If you want to use RGB color, you can go for Excel 2007 format. I have placed a sample in the following link:


Please try this and let me know if you have any questions.


Willis Logwood
Replied On June 16, 2010 02:37 PM UTC

Thank you, I changed the format to Excel 2007 and everything works.

Thanks again.

Geetha M [Syncfusion]
Replied On June 17, 2010 03:32 AM UTC

Hi Willis,

Thank you for the update.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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