We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DrawCell event problem

Thread ID:

Created:

Updated:

Platform:

Replies:

62303 Jun 12,2007 08:48 PM UTC Jun 18,2007 11:37 PM UTC Windows Forms 4
loading
Tags: Grouping
Rocky Tatlay
Asked On June 12, 2007 08:48 PM UTC

Hello,

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);


-thanks

haneefm [Syncfusion]
Replied On June 12, 2007 11:25 PM UTC

Hi Rocko,

Here is a forum thread that discuss with similar issue and let me know if this helps
http://www.syncfusion.com/support/Forums/message.aspx?&MessageID=55958

Best regards,
Haneef

Rocky Tatlay
Replied On June 13, 2007 04:24 PM UTC

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.

Rocky Tatlay
Replied On June 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.

haneefm [Syncfusion]
Replied On 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.

Best regards,
Haneef

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;