int (final RadContainer grid, final int cellIndex, final boolean isRow, final boolean isBefore, final boolean grow) { FormSpec formSpec; if (isRow) { formSpec = grow ? new RowSpec(ENCODED_FORMSPEC_GROW) : new RowSpec(DEFAULT_NOGROW_SIZE); } else { formSpec = grow ? new ColumnSpec(ENCODED_FORMSPEC_GROW) : new ColumnSpec(DEFAULT_NOGROW_SIZE); } insertGridCells(grid, cellIndex, isRow, isBefore, formSpec); return getGridCellCount(grid, isRow) == 1 ? 1 : 2; }