public void UpdatedColumn(ColumnModel column, int index) { CellModel oldCell = cells[index]; CellModel newCell = column.GetCell(); newCell.RowReference = this.rowReference; newCell.ColumnChangeSetData(oldCell.Data); cells[index] = newCell; controller.NotifyColumnUpdated(index, newCell, column); }
public void AddedColumn(ColumnModel column, int index) { CellModel newCell = column.GetCell(); newCell.RowReference = this.rowReference; if (index >= cells.Count) { cells.Add(newCell); } else { cells.Insert(index, newCell); } controller.NotifyColumnAdded(index, cells[index], column); }