I have a grid with a custom gridtable.
Due to the workflow in my program, I have to initialize the grid with no data (eventough all "metadata" such as col.names etc are set up).
After some things have occured (among other things a download from the net has finished), i have to assign the (now present) data to the grid.
I have tried to make a "setdata" function (which simply sets the argument as the tablebases internal data) on my tablebase and called ClearGrid on the grid. However the grid still seems empty.
How do I do this the easiest ? Btw. I need to initialize the grid empty because it is shown in the application while downloading and I'm not sure how to keep the correct ordering in a sizer if i kill the gridobject and create a new one.
I have a grid with a custom gridtable.
Due to the workflow in my program, I have to initialize the grid with no data (eventough all "metadata" such as col.names etc are set up).
After some things have occured (among other things a download from the net has finished), i have to assign the (now present) data to the grid.
I have tried to make a "setdata" function (which simply sets the argument as the tablebases internal data) on my tablebase and called ClearGrid on the grid. However the grid still seems empty.
The table needs to inform the grid that things have changed. There are a set of grid-table messages that the table can send to the grid. I think that there are some pages in the wiki that show what is needed, but I don't have time right now to hunt them down. (Sorry)
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!