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

How to prevent the blackout selection when AllowSelection is set to 'None' from 'Any'?

Platform: WinForms |
Control: GridGroupingControl |
Published Date: May 23, 2015 |
Last Revised Date: May 25, 2015
Tags: selection


By default, the selected rows/columns/cells are highlighted with AlphaBlend color. The Selection Backcolor is highlighted with Black color, by changing the AllowSelection property to None. The following image illustrates the exact issue.

As per the architecture, the Selection Backcolor is removed from the graphics when changing AllowSelection to None. This article provides the information about how to resolve it.


To resolve the Selection Backcolor issue, the GridSelectionFlags.AlphaBlend property can be used along with the GridSelectionFlags.None property as GridSelectionFlags.None | GridSelectionFlags.AlphaBlend while setting the AllowSelection to None.







This is applicable for GridControl and GridDataBoundGrid also.


The following image illustrates the Selection Backcolor as a Default Selection Backcolor.


Sample Links

C#: Selection_Backcolor_CS

VB: Selection_Backcolor_VB

You must log in to leave a comment

Please sign in to access our KB

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