private void InitializeControls() { Debug.Assert(Designer.ReportItem.CustomData != null, "CustomData should be initialized."); Debug.Assert(Designer.ReportItem.CustomData.DataRowGroupings.Count == 1, "Only one data grouping is allowed."); SortByCollection sorting = Designer.ReportItem.CustomData.DataRowGroupings[0].Sorting; using (new SuspendLayoutTransaction(this)) { Control sortingEditor = DesignerActionContainersFactory.CreateSortingEditor(ServiceProvider, sorting, Designer.ReportItem); using (new SuspendLayoutTransaction(sortingEditor)) { sortingEditor.Dock = DockStyle.Fill; } Controls.Add(sortingEditor); } }
private void InitializeComponents() { Debug.Assert(Designer.ReportItem.CustomData != null, "CustomData should be initialized."); Debug.Assert(Designer.ReportItem.CustomData.DataRowGroupings.Count == 1, "Only one data grouping is allowed."); Grouping grouping = Designer.ReportItem.CustomData.DataRowGroupings[0].Grouping; using (new SuspendLayoutTransaction(this, true)) { // // groupingEditor // Control _groupsEditor = DesignerActionContainersFactory.CreateGroupsEditor(ServiceProvider, grouping, Designer.ReportItem); _groupsEditor.Dock = DockStyle.Fill; if (_groupsEditor is DesignerActionContainersFactory.IGroupsEditor) { ((DesignerActionContainersFactory.IGroupsEditor)_groupsEditor).SetGridHeight(100); } Controls.Add(_groupsEditor); } }