Cancel grid cell editor

Yusdi Santoso wrote:

Hi all,

Is there a way to cancel a grid cell editor once a cell has been double clicked. Here is the use case:
I want to replace the inline cell editor with a popup dialog because of the complex way to select the input.

What I do now is to capture the EVT_GRID_EDITOR_SHOWN event and on the event handler popup my dialog box and handle the user input. However I was not able to cancel (disable/inactivate) the normal cell editor when I decide to use the popup dialog. I tried calling EndEdit on the cell editor but it caused the program to crash. I think this is because EDITOR_SHOWN event is called before BeginEdit?

Anybody know any better way for achieving this?

grid.DisableCellEditControl()

ยทยทยท

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