[wxPython] wxGrid and hidden rows

How can I override the wxGrid member functions for manipulating the cursor, like MoveCursorUp, MoveCursorDown, etc.? I want to have hidden rows (zero height) which will be skipped when these functions are called. I can add an event hander to process the keys manually, but then things like hitting enter while editing a row can still move onto a hidden row. Redefining them in my own wxGrid derived class does nothing.
Thanks, Keith

How can I override the wxGrid member functions for manipulating the

cursor,

like MoveCursorUp, MoveCursorDown, etc.?

They aren't designed to be overridden.

I want to have hidden rows (zero
height) which will be skipped when these functions are called. I can add
an event hander to process the keys manually, but then things like hitting
enter while editing a row can still move onto a hidden row. Redefining
them in my own wxGrid derived class does nothing.

You could catch EVT_GRID_SELECT_CELL and if it is changing to a hidden cell
then move the cursor to a non-hidden cell.

ยทยทยท

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