public void NewReport() { var dataSchema = new SkylineDataSchema(DocumentContainer, SkylineDataSchema.GetLocalizedSchemaLocalizer()); var viewContext = new DocumentGridViewContext(dataSchema) { EnablePreview = true }; var newView = viewContext.NewView(this, PersistedViews.MainGroup); if (newView != null) { chooseViewsControl.SelectView(newView.Name); chooseViewsControl.CheckedViews = chooseViewsControl.CheckedViews .Append(PersistedViews.MainGroup.Id.ViewName(newView.Name)); } }