On Dec 31, 2007, at 12:18 PM, Steve Rose wrote:
> Four buttons handle first, prior, next and last navigation in the > parent. > This works perfectly as the grid always updates correctly when > navigation > occurs in the parent table. Three other buttons are supposed to > handle new, > save and cancel functions. When I click New (code: self.Form.new() or > self.Form.new('parent'), I lose the link to the grid. I can still > navigate > the parent, but the link to the child records are lost. The > traceback is > lengthy and not too helpful, but the gist of it seems to be that > the grid > loses its current row number and I see such things as "uiIndex < > m_nCount > failed in wxBaseArray" blah, blah. Obviously the grid has lost its > link to > the parent.
It's not that the link is "lost"; it's that whatever error caused the traceback is preventing the update from proceeding. Please paste the full traceback, as it is probably more helpful than you think. ;-)
-- Ed Leafe -- http://leafe.com -- http://dabodev.com
©2007 Ed Leafe |