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.
In the DrawCell event I am drawing a small image in one of the cells.
private void gridAssignments_DrawCell(object sender, Syncfusion.Windows.Forms.Grid.GridDrawCellEventArgs e) {
e.Graphics.DrawImage(ledImage, (int) (e.Bounds.X + (e.Bounds.Width - ledImage.Width)/2), ((int) e.Bounds.Y + (e.Bounds.Height - ledImage.Height) / 2));
}
The grid is set to be a listbox styled grid. Now this all works fine if i use the arrow keys to move up and down. The gray highlighted row shows the image in it. However if I click a row then the image appears on mousedown (highlighted in grey) but on mouseup it then disappears, presumably being overwritten by the gray bar.
It seems odd that it works with keys but not clicks.
How can I fix this?
thanks,
simon