Jump to content

Why is TUNIGUIDBGrid.RecordCount


rhazell

Recommended Posts

Can anyone explain why (or what would cause) UniDBGrid.RecordCount event to be called several times upon the creation and initial display of a form?

In fact, it's called approximately 6 times before the form finishing loading.

Even weirder, it appears to be called even before the table has even been opened, based on my logging snippet below:

[2 µs][Trace][Value: TframeItem.UniFrameCreate][Type: string]
[1040 µs][Trace][Value: TframeItem.UniFrameBeforeReady][Type: string]
[25689 µs][Trace][Value: TframeItem.UniFrameReady | begin][Type: string]
[29 µs][Trace][Value: TframeItem.tblItem_BeforeOpen][Type: string]
[5420560 µs][Trace][Value: TframeItem.UniDBGrid1RecordCount][Type: string]
[1876286 µs][Trace][Value: TframeItem.UniDBGrid1RecordCount][Type: string]
[18 µs][Trace][Value: TframeItem.UniDBGrid1RecordCount][Type: string]
[1196 µs][Trace][Value: TframeItem.tblItem_AfterOpen][Type: string]
[2 µs][Trace][Value: TframeItem.tblItem_AfterScroll | begin][Type: string]

 

Thanks in advance.

Link to comment
Share on other sites

I assume that means I need not be concerned the number of times it appears to be called. That's great.  Thanks you.

It really only came onto my radar because I have several (relatively simple) forms with a UniDBGrid that are taking very long to load and I am trying to determine the root cause.  It could be my understanding / approach but I'm having a hard time understanding (and measuring) where the delays are occurring (data access vs rendering etc)...

Do yo have any suggestions?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...