Peter Wurmsdobler wrote:
I tried to recreate the wxPyGridTableBase from the new table and call SetTable again, but SetTable cannot be called twice on the same wxGrid. Do I have to destroy the entire WxGrid in this case, or is there something like ResetTable().
The way this is typically solved is to call SetTable with a proxy object of some sort that delegates the various method calls to some other table object (or even a custom data repository of your own making.) Then when you need to change tables you just point the table proxy at a new data object and then send the appropriate messages to the grid to update itself. Since the gridtable (the proxy) never changes you never need to call SetTable again.
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!