The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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.
ADAdministrator 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;