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.

Changing default row selection color

Thread ID:

Created:

Updated:

Platform:

Replies:

21665 Nov 17,2004 03:29 AM Nov 18,2004 04:25 AM Windows Forms 2
loading
Tags: Grouping
Jason Southgate
Asked On November 17, 2004 03:29 AM

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 07:02 AM

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 04:25 AM

Fantastic Clay, Thanks.

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.

;