public void CopyCommandCallsTo(Row detailRow) { int columnIndex = 0; foreach (Element cell in detailRow.GetCells()) { CommandCall cellCall; if (CommandCallByColumn.TryGetValue(columnIndex, out cellCall)) { cellCall.Element = cell; } columnIndex++; } }