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 a class derived from GridStaticCellRenderer. I''m overriding the OnMouseDown() method but it never seems to get called. Anything I''m missing here?
I have:
protected override void OnMouseDown(int rowIndex, int colIndex, MouseEventArgs e)
{
Debug.WriteLine("Mousedown");
}
But it just never gets called.
Thanks.
Pete
ADAdministrator Syncfusion Team July 13, 2004 05:38 PM UTC
In order for the renderer to get mouse messages, you need to override renderer.OnHitTest. Your override should return non-zero when you want the message to be handles by the renderer''s mouse handlers.
The grid\samples\indepth\DerivedCellControlTutorial does this type of thing to handle the mouse messages associated with a LinkLabel cell.
ADAdministrator Syncfusion Team July 13, 2004 06:31 PM UTC
Excellent. That was my last issue for today (and hopefully a while). Thanks for all your help.