public FrmNavisWorkAddProp() { InitializeComponent(); viewControl = new ViewControl(); documentControl = new DocumentControl(); viewControl.Dock = DockStyle.Fill; viewControl.DocumentControl = this.documentControl; viewControl.Location = new Point(0, 24); viewControl.Name = "viewControl"; viewControl.Size = new Size(745, 496); viewControl.TabIndex = 1; this.viewControl.Text = "viewControl"; viewControl.BringToFront(); viewControl.BackColor = SysColor.Color.Red; viewControl.CreateControl(); splitContainerMain.Panel2.Controls.Add(viewControl); /********************/ documentControl.SetAsMainDocument(); /********************/ GrdNavisModelFile.AutoGenerateColumns = false; dtListOfFiles.Columns.AddRange(new[] { new DataColumn("cFileName", typeof(string)), new DataColumn("cFileLocation", typeof(string)), new DataColumn("cPropertyName", typeof(string)), new DataColumn("cPropertyValue", typeof(string)), new DataColumn("cPropertyValueCombo", typeof(string)), }); GrdNavisModelFile.DataSource = dtListOfFiles; AddComboBoxValue(); }