protected override void OnInitializeSections(bool hasRecords, SortColumnDescriptorCollection fields) { // Caption this.Sections.Add(this.ParentTableDescriptor.CreateCaptionSection(this)); // Column Headers this.Sections.Add(this.ParentTableDescriptor.CreateColumnHeaderSection(this)); // Extra section this.Sections.Add(new ExtraSection(this)); // AddNewRecord AddNewRecordSection addNewRecordSectionBeforeDetails = this.ParentTableDescriptor.CreateAddNewRecordSection(this); addNewRecordSectionBeforeDetails.IsBeforeDetails = true; this.Sections.Add(addNewRecordSectionBeforeDetails); // Details (Records or Groups) if (hasRecords) { this.Sections.Add(this.ParentTableDescriptor.CreateRecordsDetails(this, fields)); } else { this.Sections.Add(this.ParentTableDescriptor.CreateGroupsDetails(this, fields)); } // Summary this.Sections.Add(this.ParentTableDescriptor.CreateSummarySection(this)); }
protected override void OnInitializeSections(bool hasRecords, SortColumnDescriptorCollection fields) { if (this.IsTopLevelGroup && GroupingChildTable.sectionRequired) { this.Sections.Add(new ExtraSection(this)); } base.OnInitializeSections(hasRecords, fields); }
protected override void OnInitializeSections(bool hasRecords, SortColumnDescriptorCollection fields) { this.Sections.Add(this.ParentTableDescriptor.CreateCaptionSection(this)); if (hasRecords) { this.Sections.Add(this.ParentTableDescriptor.CreateRecordsDetails(this, fields)); } else { this.Sections.Add(this.ParentTableDescriptor.CreateGroupsDetails(this, fields)); } this.Sections.Add(this.ParentTableDescriptor.CreateSummarySection(this)); }