git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6091
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+ if (IsCellEditControlEnabled())
+ EnableCellEditControl(FALSE);
+
bool ok = m_table->InsertRows( pos, numRows );
// the table will have sent the results of the insert row
bool ok = m_table->InsertRows( pos, numRows );
// the table will have sent the results of the insert row
- if ( m_table && m_table->DeleteRows( pos, numRows ) )
- // the table will have sent the results of the delete row
- // operation to this view object as a grid table message
- //
- if ( m_numRows > 0 )
- SetEditControlValue();
- else
- HideCellEditControl();
+ if (IsCellEditControlEnabled())
+ EnableCellEditControl(FALSE);
- ClearSelection();
- if ( !GetBatchCount() ) Refresh();
- return TRUE;
- }
- else
- {
- return FALSE;
+ if (m_table->DeleteRows( pos, numRows ))
+ {
+
+ // the table will have sent the results of the delete row
+ // operation to this view object as a grid table message
+ //
+ ClearSelection();
+ if ( !GetBatchCount() ) Refresh();
+ return TRUE;
+ }
+ if (IsCellEditControlEnabled())
+ EnableCellEditControl(FALSE);
+
bool ok = m_table->InsertCols( pos, numCols );
// the table will have sent the results of the insert col
bool ok = m_table->InsertCols( pos, numCols );
// the table will have sent the results of the insert col
- if ( m_table && m_table->DeleteCols( pos, numCols ) )
- // the table will have sent the results of the delete col
- // operation to this view object as a grid table message
- //
- if ( m_numCols > 0 )
- SetEditControlValue();
- else
- HideCellEditControl();
+ if (IsCellEditControlEnabled())
+ EnableCellEditControl(FALSE);
- ClearSelection();
- if ( !GetBatchCount() ) Refresh();
- return TRUE;
- }
- else
- {
- return FALSE;
+ if ( m_table->DeleteCols( pos, numCols ) )
+ {
+ // the table will have sent the results of the delete col
+ // operation to this view object as a grid table message
+ //
+ ClearSelection();
+ if ( !GetBatchCount() ) Refresh();
+ return TRUE;
+ }