public void doAfter(int newCell) {
    if (myMode == GridInsertMode.RowAfter) {
      int columns = myLayoutManager.getGridColumnCount(myContainer);
      for (int i = 0; i < columns; i++) {
        if (i != myColumn) {
          RadComponent component = RadAbstractGridLayoutManager.getComponentAtGrid(myContainer, myRow, i);
          if (component != null) {
            GridConstraints constraints = component.getConstraints();
            int endRow = constraints.getRow() + constraints.getRowSpan() - 1;

            if (endRow == myRow) {
              GridConstraints oldConstraints = (GridConstraints)constraints.clone();
              constraints.setRowSpan(constraints.getRowSpan() + newCell - myRow);
              component.fireConstraintsChanged(oldConstraints);
            }

            i = constraints.getColumn() + constraints.getColSpan() - 1;
          }
        }
      }
    }
    else if (myMode == GridInsertMode.ColumnAfter) {
      int rows = myLayoutManager.getGridRowCount(myContainer);
      for (int i = 0; i < rows; i++) {
        if (i != myRow) {
          RadComponent component = RadAbstractGridLayoutManager.getComponentAtGrid(myContainer, i, myColumn);
          if (component != null) {
            GridConstraints constraints = component.getConstraints();
            int endColumn = constraints.getColumn() + constraints.getColSpan() - 1;

            if (endColumn == myColumn) {
              GridConstraints oldConstraints = (GridConstraints)constraints.clone();
              constraints.setColSpan(constraints.getColSpan() + newCell - myColumn);
              component.fireConstraintsChanged(oldConstraints);
            }

            i = constraints.getRow() + constraints.getRowSpan() - 1;
          }
        }
      }
    }
  }
public void doAfter(int newCell)