[wxPython] Problems with adding rows to wxGrid

Hi,

Im trying to use wxGrid in similar manner as dbGrid is used in Delphi.
Almost everything is working fine
( for a Interbase DB) , but I have strange problems when deleting rows
from the grid: when I post an
wxGRIDTABLE_NOTIFY_ROWS_DELETE event, the grid actually adds rows
instead of deleting them !

Am I doing something wrong ?

Regards,

Michal

Michal.Wegrzynek@litex.pl

Michał Węgrzynek wrote:

Hi,

Im trying to use wxGrid in similar manner as dbGrid is used in Delphi.
Almost everything is working fine
( for a Interbase DB) , but I have strange problems when deleting rows
from the grid: when I post an
wxGRIDTABLE_NOTIFY_ROWS_DELETE event, the grid actually adds rows
instead of deleting them !

Try NOTIFY ADD with negative number.

HTH
Niki Spahiev

Im trying to use wxGrid in similar manner as dbGrid is used in Delphi.
Almost everything is working fine
( for a Interbase DB) , but I have strange problems when deleting rows
from the grid: when I post an
wxGRIDTABLE_NOTIFY_ROWS_DELETE event, the grid actually adds rows
instead of deleting them !

Please send some sample code.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!