public ExcelSheet() { InitializeComponent(); panel2.Size = new Size(firstColWidth + NBCOLUMN * colWidth, rowHeight + NBROWS * rowHeight); ev = new ExcelEvaluator(); mCells = new Cell[NBCOLUMN, NBROWS]; for (int row = 0; row < NBROWS; row++) { for (int col = 0; col < NBCOLUMN; col++) { var cellName = Cell.GetCellName(curCell.X, curCell.Y); mCells[col, row] = new Cell(ev, col, row); } } }