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

Changing default row selection color

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.

2 Replies

AD Administrator Syncfusion Team 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;

JS Jason Southgate November 18, 2004 09:25 AM UTC

Fantastic Clay, Thanks.

Live Chat Icon For mobile
Up arrow icon