Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 29 Mar 2024, 14:25

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 09 Aug 2018, 12:50 
Offline

Joined: 09 Aug 2018, 12:46
Posts: 1
Hello,
In project using Delphi-10.2 & EhLib-9 & Direct Oracle Access.
The Problem - is a abnormally large number of calls OnGetText event in dataset. It's initialising by grid (DbGridEh) every time you click on a cell or move mouse on calculated column. Therefore, the code bound to OnGetText strongly inhibits the work with the grid.
This problem appeared when moving from Delphi-7 to Delphi-10.2 and from EhLib-3 to EhLib-9.
Also, in comparison with the standard DbGrid, I get 1-2 calls OnGetText on DbGrid and 15-100 on DbGridEh (15 on mouse move and ~100 on click).
I need to significantly reduce the number of OnGetText calls. How to do it properly?


Top
 Profile  
 
PostPosted: 13 Aug 2018, 01:17 
Offline

Joined: 08 May 2014, 18:06
Posts: 660
Hello.

Grid version 9 is much more complicated and has more capabilities than the grid of EhLib v.3.
OnGetText is always called when you need to draw a cell in a grid or get additional information, for example, whether the text is placed in a cell and whether you need to output a tooltip with the full version of the text.
According to the logic of the grid operation, it is assumed that the OnGetText event works quickly.

We suggest that you request additional data in separate fields after the query is executed once, and not on OnGetText.
Alternatively, we can tell where to comment out the text in order to reduce the number of calls, but this can lead to errors in the work of the grid.

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group