using custom grid for big amount of data representation

Hi,

I'm trying to display big amounts of data (bigger than 4 cols x
2.000.000 rows) using a wxGrid together with a

Some of the cells must have a red color, other cells, green, other
cells, yellow, and so on.

The grid contents is loaded from a file. I was able to update the data
from the table, but I can't find a solution to set the attributes for
the individual cells.

All the solutions I've come up are very slowww.

Any ideas ?

Ionutz

Ionutz Borcoman wrote:

Hi,

I'm trying to display big amounts of data (bigger than 4 cols x
2.000.000 rows) using a wxGrid together with a

Some of the cells must have a red color, other cells, green, other
cells, yellow, and so on.

The grid contents is loaded from a file. I was able to update the data
from the table, but I can't find a solution to set the attributes for
the individual cells.

You can do this pretty simply with renderers in a virtual grid. Attached is a modified example from the wxpython demo. This has worked pretty well for me so far.

GridHugeRenderer.py (4.08 KB)

ยทยทยท

--
Brian Kelley bkelley@wi.mit.edu
Whitehead Institute for Biomedical Research 617 258-6191