if ( m_table )
{
+ if (IsCellEditControlEnabled())
+ EnableCellEditControl(FALSE);
+
bool ok = m_table->InsertRows( pos, numRows );
// the table will have sent the results of the insert row
return FALSE;
}
- if ( m_table && m_table->DeleteRows( pos, numRows ) )
+ if ( m_table )
{
- // 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;
+ }
}
+ return FALSE;
}
if ( m_table )
{
- HideCellEditControl();
+ if (IsCellEditControlEnabled())
+ EnableCellEditControl(FALSE);
+
bool ok = m_table->InsertCols( pos, numCols );
// the table will have sent the results of the insert col
return FALSE;
}
- if ( m_table && m_table->DeleteCols( pos, numCols ) )
+ if ( m_table )
{
- // 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;
+ }
}
+ return FALSE;
}