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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Changing default row selection color

Thread ID:





21665 Nov 17,2004 08:29 AM UTC Nov 18,2004 09:25 AM UTC WinForms 2
Tags: Grouping
Jason Southgate
Asked On November 17, 2004 08:29 AM UTC

Hi, Please can you tell me how to change the default row selection color. By default it appears as the "inverse" RGB color, I would like to simply "darken" the row with the following algorithm: SelectionColor.R += 55; SelectionColor.G += 55; SelectionColor.B += 55; Also, is there a way to retain the focus on the grid when a ContextMenu pops up so that the row still appears selected? Thanks in advance, Jason Southgate.

Administrator [Syncfusion]
Replied On November 17, 2004 12:02 PM UTC

To use alphablended selection coloring, you need to make sure the AlphaBlen flag is set in teh AllowSelections property. this.gridGroupingControl1.TableOptions.AllowSelection = GridSelectionFlags.Any; To not lose the selections on a right click, try setting this property. this.gridGroupingControl1.TableControl.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;

Jason Southgate
Replied On November 18, 2004 09:25 AM UTC

Fantastic Clay, Thanks.


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

Live Chat Icon For mobile
Live Chat Icon