Mega Code Archive

 
Categories / Delphi / Strings
 

Speed up string grids

Title: Speed up string grids Question: Inserting data into a string grid can get slow. Here's a way to speed it up. Answer: With theStringGrid Do Begin Perform( WM_SETREDRAW, 0, 0 ); try ..add the data to the grid finally Perform( WM_SETREDRAW, 1, 0 ); Invalidate; end; End; Thanks to the omniscient Peter Below