// the active cell
columnModel.removeColumn( columnCount - 1 );
assertEquals( "removed the last and active column, active column was not adjusted!",
columnCount - 2, gridControl.getCurrentColumn() );
// same holds for rows
dataModel.removeRow( rowCount - 1 );
assertEquals( "removed the last and active row, active row was not adjusted!",
rowCount - 2, gridControl.getCurrentRow() );
}
// -----------------------------------------------------------------------------------------------------------------