or
Form privatForm= new Form();privatForm.Dock = DockStyle.Fill;privatForm.TopLevel = false;DocumentWindow privatDockForm = new DocumentWindow();privatDockForm.CloseAction = DockWindowCloseAction.Hide;privatDockForm.Text = tabName;privatDockForm.Controls.Add(privatForm);generalFrm.radDock1.AddDocument(privatDockForm);privatDockForm.Show();privatForm.Show();

private void RefreshColorsOfResultsInGrid(){ this.radGridViewControl.BeginInit(); foreach (GridViewRowInfo row in this.radGridViewControl.Rows) { GridViewCellInfo cell = row.Cells["ResultAsString"]; if ((cell.Value.ToString().ToUpper() == "NEW") || (cell.Value.ToString().ToUpper() == "NEW*")) { cell.Style.CustomizeFill = true; cell.Style.DrawFill = true; cell.Style.ForeColor = Color.Green; cell.Style.Font = new Font("Arial", 8, FontStyle.Bold); } else if ((cell.Value.ToString().ToUpper() == "OLD") || (cell.Value.ToString().ToUpper() == "OLD*") ) { cell.Style.CustomizeFill = true; cell.Style.DrawFill = true; cell.Style.ForeColor = Color.Red; cell.Style.Font = new Font("Arial", 8, FontStyle.Bold); } else { cell.Style.CustomizeFill = true; cell.Style.DrawFill = true; cell.Style.ForeColor = Color.Black; } } this.radGridViewControl.EndInit(); this.radGridViewControl.Refresh();}


