[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.SectionReport.Sections

Sections Property

Sections

Gets value representing a sections collection of the report.

Declaration
[Browsable(false)]
public SectionCollection Sections { get; }
Property Value
Type Description
SectionCollection

A SectionCollection value representing a collection of report sections such as Detail, PageHeader, PageFooter.

Remarks

Empty collection by default. Should contain only one Detail instance.

Examples
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();