Also save and disable editor in SetModelValues. However, I don't have
a test case ...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17045
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
default:
// additionally accept 'e' as in '1e+6'
if ( (keycode < 128) &&
default:
// additionally accept 'e' as in '1e+6'
if ( (keycode < 128) &&
- (isdigit(keycode) || tolower(keycode) == wxT('e')) )
+ (isdigit(keycode) || tolower(keycode) == 'e') )
bool wxGrid::GetModelValues()
{
bool wxGrid::GetModelValues()
{
+ // Disable the editor, so it won't hide a changed value.
+ DisableCellEditControl();
+
if ( m_table )
{
// all we need to do is repaint the grid
if ( m_table )
{
// all we need to do is repaint the grid
+ // Disable the editor, so it won't hide a changed value.
+ // Do we also want to save the current value of the editor first?
+ // I think so ...
+ SaveEditControlValue();
+ DisableCellEditControl();
+
if ( m_table )
{
for ( row = 0; row < m_numRows; row++ )
if ( m_table )
{
for ( row = 0; row < m_numRows; row++ )