[]
Gets value representing a sections collection of the report.
[Browsable(false)]
public SectionCollection Sections { get; }
Type | Description |
---|---|
SectionCollection | A SectionCollection value representing a collection of report sections such as Detail, PageHeader, PageFooter. |
Empty collection by default. Should contain only one Detail instance.
var sectionReport = new GrapeCity.ActiveReports.SectionReport();
sectionReport.Document.Printer.PrinterName = String.Empty;
detailSection = new GrapeCity.ActiveReports.SectionReportModel.Detail{Name = "Details"};
detailSection.BackColor = System.Drawing.Color.Transparent;
detailSection.CanGrow = true;
detailSection.CanShrink = false;
detailSection.Controls.Clear();
detailSection.Height = 2.0f;
sectionReport.Sections.Add(detailSection);
sectionReport.Sections.InsertPageHF();
sectionReport.Run();