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 prevent the blackout selection when AllowSelection is set to 'None' from 'Any'?

Problem

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.

Solution

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.

 

C#

 

VB

 

Note

This is applicable for GridControl and GridDataBoundGrid also.

Screenshot

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

 

Sample Links

C#: Selection_Backcolor_CS

VB: Selection_Backcolor_VB

Article ID: Published Date: Last Revised Date: Platform: Control:
4946 05/23/2015 05/25/2015 WinForms GridDataBoundGrid(Classic)
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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