How can I control the background colour of the extended bit of the header in a RadVirtualGrid? See the area circled in red on the screenshot.
Thanks in advance,
__Jason
1 Answer, 1 is accepted
0
Martin Ivanov
Telerik team
answered on 30 Jan 2025, 07:00 AM
Hello Jason,
There is no mechanism that allows you to change only the marked part of the header border. You can only change the background of the entire border with the ColumnHeaderBackground property of RadVirtualGrid.
An extra idea that you can explore is to fix the column's widths with the ColumnWidth property of RadVirtualGrid and calculate a gradient brush for the ColumnHeaderBackground. For example:
Thanks. I had eventually discovered that it was the ColumnHeaderBackground and I'd set that to transparent and was using the HeaderCellDecorationsNeeded event to colour the actual cells. I also need to do the same thing for pinned header rows. Unfortunately, I then hit the next problem which is that, in the version of the components we are using, there is a bug that means we don't get an event for CellDecorationsNeeded for pinned cells. So this will have to wait until we find the opportunity to upgrade. But thanks for making some suggestions.