![]() |
BeforeDrawRow Severe Performance Issues |
Post Reply ![]() |
Author | |
dractivex ![]() Newbie ![]() Joined: 02 November 2006 Location: United Kingdom Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 02 November 2006 at 9:28am |
Hi,
I've writting the following BeforeDrawRow event in Visual Basic .NET 2005.
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 Thene.row.Selected = False End If If sender Is ActiveTechniciansList Then If IsOverDue(e.row.Record.Tag) Thene.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? |
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
![]() |
|
dractivex ![]() Newbie ![]() Joined: 02 November 2006 Location: United Kingdom Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
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?
|
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |