Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 27 Apr 2024, 11:31

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Slow grid?
PostPosted: 05 Dec 2023, 17:27 
Offline

Joined: 31 Jan 2013, 13:05
Posts: 17
Hi. I test something. Your grid and your memtable. In the grid i have a lot at columns, around 30, numbers and strings, the values from the table. I want to go line by line in the table and if a value from one column is null, to make something.
MT->First();
For(int i=0; i <MT->RecordCount;i++)
{//

MT->Next();
}

The cursor moves in the grid, line by line BUT VERY SLOW. If i reduce the dimensions of the form, and the grid implicit, the speed increase but so slow...It is a method to speed up this procedure? To see the cursor go line by line but with more speed?


Thanks!


Top
 Profile  
 
 Post subject: Re: Slow grid?
PostPosted: 06 Dec 2023, 09:20 
Offline

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

DBGridEh always renders data in cells as fast as possible.
One of the options to speed up movement through the DataSet is to completely block Grid rendering when performing a movement operation through the DataSet.
The methods TDataSet.DisableControls, TDataSet.EnableControls are used for this.

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
 Post subject: Re: Slow grid?
PostPosted: 08 Dec 2023, 10:52 
Offline

Joined: 31 Jan 2013, 13:05
Posts: 17
Thanks for your answer...I want to try something different

I want to select Programmatically some rows from your grid and after work only with this N rows selected....

TByteDynArray X = DBGridEh->SelectedRows->Items[i];
MTFP->GotoBookmark(X);

But i don't know how to selectet at runtime some rows, not by mouse or keyboard, but use a logical condition, like some column ISNULL, select this row.

An example please. C++ if possible :)
Thanks!


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 48 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