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 have written a user control that embeds within it a sync fusion grid. I am trying to use the grid in virtual mode, and the model for the data is in a custom object model - I am not using te model on the gridcontrol itself.
Te problem I have is I need to get involved in how a cell is drawn. Depending on certain conditions, I might want to draw two pieces of text in a single cell, one with a different background to the other piece of text. I was hoping I could override DrawCell, but I'm not sure how to go about that now. I'm also wondering if it would be simpler to create a CustomCell instead?
Any advice on the *simplest* way of achieving what I want would be most appreciated.
I am drawing text very simply by first painting the background and then painting the text on OnDrawCell:
e.Graphics.DrawString(value, font, new SolidBrush(value.Style.TextColor), e.Bounds);
The problem I now have is that the borders on the cells are showing. If I let the grid draw itself, handling only QueryCellInfo, I can switch off the border to each cell using the following: