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.

Change backgroundcolor of selected cell

Thread ID:

Created:

Updated:

Platform:

Replies:

100533 Aug 15,2011 04:53 AM Aug 18,2011 08:04 AM Windows Forms 1
loading
Tags: GridControl
Lukas Reusch
Asked On August 15, 2011 04:53 AM

Hello

How can I change the background color of a selected cell? At the moment some unselected cells have a red background. If I select them, they get a blue background.

Thank you!


Asarudheen S [Syncfusion]
Replied On August 18, 2011 08:04 AM

Hi Peter,

Thank you for your interest in Syncfusion products.

You can change the background color of a selected cell by using following code.

this.grid.TableModel.Options.AlphaBlendSelectionColor = Color.Red;

this.grid.TableModel.Options.AlphaBlendSelectionColor = Color.Red;

this.grid.TableOptions.ListBoxSelectionColorOptions = Syncfusion.Windows.Forms.Grid.Grouping.GridListBoxSelectionColorOptions.DrawAlphablend;



Please let me know if you need any further assistance.

Regards,
Asarudheen.


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.

;