Jump to content


Photo

Add rows very very slow


  • Please log in to reply
2 replies to this topic

#1 Alfredoc

Alfredoc
  • Members
  • 11 posts

Posted 10 March 2022 - 10:50 PM

Hi Boki,

I have tried your Demo to download and it is incredibly fast to add 100,000 rows.

However, I have tried adding 1,000 it takes a long time. Not to mention 50,000 which takes hours. And the worst thing is that I need to add 200,000 columns  :unsure: 

What is wrong in this simple test code?  :rolleyes: 
 

procedure TForm1.Button1Click(Sender: TObject);
Var
   X: Integer;
begin
     for X:= 1 to 1000 do NextGrid61.AddRow();
end;


#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 11 March 2022 - 09:29 AM

Hello,

 

Please check this article: http://developer.ber...=211&lang=en-us

 

I hope it will helps.


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Alfredoc

Alfredoc
  • Members
  • 11 posts

Posted 12 March 2022 - 02:48 AM

Thanks a lot  :rolleyes:






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users