Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 27 Apr 2024, 19:23

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Scroll down Grid slow!
PostPosted: 06 Feb 2017, 01:51 
Offline

Joined: 06 Sep 2016, 02:27
Posts: 19
good day!
I want to make an appointment
In my application I use your controls that I love
I use DBGridEh but I noticed a problem I do not know if it is a bug in the components
Or it is I who have programmed it wrong.
The theme is is that when I display the logs scrolling with the mouse scroll and scroolbar makes it slow.
Are between 500 and 1000 records
6 visible columns and the other occult ones that are around 20 more.
Among them are Memos and image fields.
In some columns I use the PickList and DropDownBox.
Is there any way to improve the displacement? :shock: :shock: :shock:

The dataSet I use is TClientDataSet
I wanted to use the component of you but I could not implement it
Since the TClientDataSet I use it with Datasnap.

Is there a way to implement the TMenTableEh as TClientDataSet for DataSnap?

note
I've made demos with a new component called TeeBiGrid and it seems to be faster to move, but as we have been using EhLib for many years.


Attachments:
Grid.PNG
Grid.PNG [ 51.39 KiB | Viewed 2243 times ]
Top
 Profile  
 
PostPosted: 06 Feb 2017, 13:09 
Offline

Joined: 08 May 2014, 18:06
Posts: 663
Hello

There may be several reasons that lead to a slowdown.

1. Drawing operations
Each additional setting in the grid such as
Column.AlwaysShowEditButton = True
or
DBGridEh.BackgroundData.Picture.Data
makes drawing operations slower

So try to put new DBGridEh on a form without extra setting and check drawing and scrolling speed.

2. Navigation operations. When DataSet move from record to record.
When you bind DBGridEh to TClientDataSet then it changes DataSet position when you use vertical scrollbar.
Here TMenTableEh can help. MenTableEh have special tools that allow to view and use vertical scrollbar without
changing active record in DataSet.
You can't just replace TClientDataSet by TMenTableEh.
But you can bind DBGridEh to TMenTableEh using the following chain of components.
DBGridEh-DataSource-TMenTableEh(.DataDriver)-TDataSetDriverEh(.ProviderDataSet)-YourClientDataSet

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
PostPosted: 12 Feb 2017, 04:12 
Offline

Joined: 06 Sep 2016, 02:27
Posts: 19
******************************************************************************
Thank you!
To disable the options listed
Column.AlwaysShowEditButton = False
DBGridEh.BackgroundData.Picture.Data
The displacement has been faster.

This part is not clear to me
DBGridEh-DataSource-TMenTableEh (.DataDriver) -TDataSetDriverEh (.ProviderDataSet) -YourClientDataSet
Have any examples or demo of use?
Thank you many !!


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

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 61 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:  
Powered by phpBB® Forum Software © phpBB Group