wxgrid cell edit lose focus

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
guzzi_jones
Experienced Solver
Experienced Solver
Posts: 81
Joined: Sun Dec 08, 2013 3:50 am

wxgrid cell edit lose focus

Post by guzzi_jones »

Is there an event that is called when a cell edit loses focus?
I would like to write my table back to the database.
User avatar
doublemax
Moderator
Moderator
Posts: 19164
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxgrid cell edit lose focus

Post by doublemax »

Check wxGridEvent:
http://docs.wxwidgets.org/trunk/classwx_grid_event.html

wxEVT_GRID_CELL_CHANGED and wxEVT_GRID_EDITOR_HIDDEN look like interesting candidates.
Use the source, Luke!