I am trying to create a workbook like in Excel.
I have created a MDI Container form and it did not display the grid when I add new WorkbookForm child window.
I have copied these codes from the gridpad sample project.
WorkbookModel workbook = new WorkbookModel("Workbook");
GridModel sheet1 = new GridModel();
sheet1.RowCount = 100;
sheet1.ColCount = 10;
GridModel sheet2 = new GridModel();
sheet2.RowCount = 100;
sheet2.ColCount = 10;
workbook.Worksheets.Add(new WorksheetModel(workbook, "Sheet 1", sheet1));
workbook.Worksheets.Add(new WorksheetModel(workbook, "Sheet 2", sheet2));
WorkbookForm doc = new WorkbookForm(workbook);
doc.ThemesEnabled = true;
doc.MdiParent = this;