Print Page | Close Window

BeforeDrawRow Severe Performance Issues

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=5409
Printed Date: 18 September 2024 at 10:42pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BeforeDrawRow Severe Performance Issues
Posted By: dractivex
Subject: BeforeDrawRow Severe Performance Issues
Date Posted: 02 November 2006 at 9:28am
Hi,
 
I've writting the following BeforeDrawRow event in Visual Basic .NET 2005.
 

Private Sub List_BeforeDrawRow(ByVal sender As Object, ByVal e As AxXtremeReportControl._DReportControlEvents_BeforeDrawRowEvent) Handles ActiveTechniciansList.BeforeDrawRow

If e.row.Index Mod 2 = 0 And e.row.GroupRow = False Then

e.metrics.BackColor = RGB(250, 250, 250)

End If

If e.row.Selected = True Then

e.row.Selected = False

End If

If sender Is ActiveTechniciansList Then

If IsOverDue(e.row.Record.Tag) Then

e.metrics.ForeColor = 255

End If

End If

End Sub

 

The trouble is, if my Report Control is placed on a stand-alone (non MDI child) form, this code makes scrolling of report control very slow. The second even more severe problem is that if my report control is hosted on an MDI child form, the control does not display at all. What could be wrong?




Replies:
Posted By: sserge
Date Posted: 05 November 2006 at 12:57pm
please look at http://forum.codejock.com/forum_posts.asp?TID=3623&PID=10973#10973 - http://forum.codejock.com/forum_posts.asp?TID=3623&PID=10973#10973

--
WBR,
Serge


Posted By: dractivex
Date Posted: 07 November 2006 at 3:51am
Serge,
 
The link you've provide does not relate to my issue. I am already created the RC dynamically, not using the designer. The forms work perfectly fine until I use BeforeDrawRow event. If this even it enabled, the control scrolling becomes slow on a stand-alone form and RC does not display at all on MDI child forms. However, if I disable BeforeDrawRow event, the everything works as expected both on stand-alone forms and MDI child forms.
 
Any Ideas?
 
 


Posted By: sserge
Date Posted: 07 November 2006 at 12:05pm
What is the implementation of IsOverDue?
May be it is the braking method? Try commenting it.

I've created a small sample for me and it works pretty fine. I'm using the latest version 10.3.1.

--
WBR,
Serge



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net