Problem with values changing on Grid/PyGridTableBase

Hello Everyone,

I have been using wx.grid.Grid and setting a table using wx.grid.PyGridTableBase. I originally borrowed the code from the custom grid table example in the demo application.

In my grid I want to start with an empty table and use buttons to append and delete rows. This I seem to have working fine. I can also change values to cells on the table as well. But the problem is after I change a value on one row and move the cursor to another cell on a different row the value I previously entered is automatically inserted into the new row. Then whenever I append another new row it contains the same values in its cells as the last row I updated. Can anyone offer an explanation or solution for this problem?

Cheers,

Stewart