Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - BeforeDrawRow Severe Performance Issues
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BeforeDrawRow Severe Performance Issues

 Post Reply Post Reply
Author
Message
dractivex View Drop Down
Newbie
Newbie


Joined: 02 November 2006
Location: United Kingdom
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote dractivex Quote  Post ReplyReply Direct Link To This Post Topic: BeforeDrawRow Severe Performance Issues
    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?

Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 05 November 2006 at 12:57pm
Back to Top
dractivex View Drop Down
Newbie
Newbie


Joined: 02 November 2006
Location: United Kingdom
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote dractivex Quote  Post ReplyReply Direct Link To This Post 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?
 
 
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.