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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change color of selection without using alpha blending

Thread ID:





72781 Apr 4,2008 09:12 AM UTC Apr 4,2008 11:30 PM UTC WinForms 1
Tags: GridControl
Sergey Laptev
Asked On April 4, 2008 09:12 AM UTC

Hi all,

please, tell me, how can i change the color of selection in grid control from black color to my custom color, when i select a row using

I don't want to use the alpha blending selection, because it is decrease perfomance of grid.


Administrator [Syncfusion]
Replied On April 4, 2008 11:30 PM UTC

Hi Sergey,

To Turnoff the AlphaBlendColor by using the AllowSelection property of the grid. Below is the code that show this task.

this.gridControl1.AllowSelection = this.gridControl1.AllowSelection ^ GridSelectionFlags.AlphaBlend;

You can draw over existing selected cells in the CellDrawn using the your new color. This should give you the same effect as selections. Check out this forum thread that uses this idea to color the current cell consistently with the other selections.


Best regards,


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