Jump to content

Clear StringGrid


Recommended Posts



uniStringGrid is not the most optimized component of uniGUI...

Anyway, you can try this :

  • set uniStringGrid.Visible to false before clearing it (or before adding lines), and set it to True after your process
  • try to set the property "DoubleBuffered" to True before clearing it (or adding lines)
  • try to use methods "BeginUpdate" and "EndUpdate" when you change something in your StringGrid.

You should notice better performances (but not so good; uniStringGrid is still a crappy component).


You can also try to use uniDBGrid instead of uniStringGrid... performances are better in some cases.

Link to comment
Share on other sites

Hi codeb,


I think I found a nice solution :


BEFORE clearing your uniStringGrid, put this line in your code :

AFTER clearing your uniStringGrid, put the lines:
By the way, if some of your operations are too slow (ie creating components in runtime), you can do this :
BEFORE your slow operation
AFTER your slow operation

Everything is fully explained here : http://edspencer.net/2013/07/19/sencha-con-2013-ext-js-performance-tips/




Hope it'll help you.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...