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.
I'm using a GridGroupingControl and I noticed that the default back-color of rows that are selected via the row-header is Black and I wish to set it to White. How do that ?
HAhaneefm Syncfusion Team April 2, 2007 05:36 PM UTC
Hi Ryan,
The selection color cannot be applied different to only a single column(RowHeader). Rather you can handle the QueryCellStyleInfo event to change the TextColor and BackColor properties to achieve the required look and feel of a particular column in the grid without using the selections. Or you can also handle the TableControlCellDrawn event to achieve this.
If you want to change the selection color in a grid, you need to set the TableOptions.SelectionBackColor property to new color.
Issue 2: Selection TextColor on CellBased Selection techinque.
You can handle the TableControlPrepareViewStyleInfo event to change the TextColor properties to achieve the required look and feel of a selected rows in the grid using the Model.SelectedRange property. Or you can also handle the TableControlCellDrawn event to achieve this.