wxGrid performance

Jeff Peery jeffpeery at yahoo.com
Mon Oct 1 08:37:21 PDT 2007


Hello, I'm using a wxgrid in my application and it seems to get very slow in I have more than 1000 cells. most of the problems occurs when I set the background color of cells, using SetCellBackgroundColor(). If I don't set the background color the grid performs much quicker (I can scoll through the spreadsheet without have to wait for it to refresh). Is there a better way to set the background color so it won't cause the grid to be so slow?

Also to set the cell data I iterate through all the data points and use SetCellValue() to set the cell data. I also use SetRowLabelValue() to set the row label. For datasets that are large (in the thousands) this is too slow to redraw. Is there a quicker way to draw the spreadsheet? Thanks.

Jeff

       
---------------------------------
Shape Yahoo! in your own image.  Join our Network Research Panel today!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20071001/81452088/attachment.htm


More information about the wxpython-users mailing list