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 am displaying an icon in the row header cell, but have found that the Theme is being ignored when the CellType is "Static". My grid has ThemesEnabled set to true. I am using version 4.1.0.50.
I have created an imagelist and set the BaseStylesMap["Standard"].StyleInfo.ImageList to my imagelist.
I then created a new GridStyleInfo (gsi) pointing to cell [1, 0]. I set gsi.CellType = "Static" and gsi.ImageIndex = 1, and my image does appear in the cell.
The problem is, the cell colour/style has changed back to the default row header colour. I would have expected the cell to retain the XP Theme it had before the image was applied.
Is there any way to keep the theme and display the image?
HAhaneefm Syncfusion Team July 10, 2007 11:35 PM UTC
Hi Stephen,
One thing you can do is to handle the CellDrawn event, and if it is the current rowheader that has been drawn, then draw your bitmap over it. Here is code that assume the image you want to use is 0th entry in the ImageList, this.imageList1.