Qn on wxGrid

Steven Pang wrote:

Hi,

I find that using wxGrid.AutoSizeColumns() tend to slow down
the grid a lot for a 1000 row, 6 cols grid. Any way to speed up?

No. Think about how much is going on behind the scenes to fetch and measure every value in the grid to find the widest for each column...

Setting individual cell text colour also slows things down.

There is some work going on that should significantly improve this, but I don't know how long it will be before this is ready.

Any idea how to auto-size the row and col labels instead of
having to hard code a value by trial-and-error?

Use GetTextExtent to measure the labels and add a few pixels.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!