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'm using the DrawCell event to draw small graphics in my grouping grid. Have 2 separate events for my header level and detail records. The event handlers are assigned in my constructor for the form (as below). The problem is for the details level of the grid the event handler never fires. The header event handler works perfectly. So the header graphics appear fine but the details never get drawn. Any ideas as to why?
ggcInvErr.GetTableControl(InvErrConstants.INV_HDR_DATA_TABLE).DrawCell += new GridDrawCellEventHandler(InvForm_DrawHdrErr);
ggcInvErr.GetTableControl(InvErrConstants.INV_DTL_DATA_TABLE).DrawCell += new GridDrawCellEventHandler(InvForm_DrawDtlErr);
The issue is similar but in my case the draw cell event for the child group never fires. The header event fires as it should. It is being blocked for some reason. Is there any case where this may occur? In the example from the thread you provided the event handler:
grid.GetTableControl("Table2").DrawCell += new GridDrawCellEventHandler(Table2_DrawCell);
never gets called in my case.
RTRocky TatlayJune 17, 2007 07:00 PM UTC
Just wondering if you have any ideas as to what the problem is. After some further research I’m convinced there is a problem in my dataset that causing this "lost event". It makes no sense why the draw cell event is called for the parent records but it is never called for the child records. Any ideas as to what condition must exist in the dataset to enable the draw cell event for the child record to work? The grouping on the grid displays properly so I know the relation are correct, it’s just the lost event that is the problem. Also the example from the other thread works correctly.
HAhaneefm Syncfusion Team June 18, 2007 11:37 PM UTC
Hi Rocko,
Thank you for your update.
I am not sure of what be might be causing this strange behavior without a working sample. Can you prepare a little sample project showing this problem and post it here, or submit a Direct Trac support incident and include the sample project there? This will help us to analyse the issue further.