ActiveReports3 Request technical support
InsertGroupHF Method
See Also  Example


Inserts a group header and a matching group footer into the SectionCollection.

Overload List

Example

C#Copy Code
Private void button2_Click(object sender, System.EventArgs e)
{
   DataDynamics.ActiveReports3.ActiveReport rpt = New DataDynamics.ActiveReports3.ActiveReport();
   rpt.Sections.Add(DataDynamics.ActiveReports3.SectionType.Detail,
"Detail");
   rpt.Sections.InsertGroupHF();
   rpt.Sections[0].BackColor = System.Drawing.Color.DarkOrchid;
   rpt.Sections[1].BackColor = System.Drawing.Color.Orchid;
   rpt.Sections[2].BackColor = System.Drawing.Color.DarkOrchid;
   rpt.Run();
   
this.arv.Document = rpt.Document;
}
Visual BasicCopy Code
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    Dim rpt As New DataDynamics.ActiveReports3.ActiveReport
    rpt.Sections.Add(DataDynamics.ActiveReports3.SectionType.Detail, "Detail")
    rpt.Sections.InsertGroupHF()
    rpt.Sections(0).BackColor = System.Drawing.Color.DarkOrchid
    rpt.Sections(1).BackColor = System.Drawing.Color.Orchid
    rpt.Sections(2).BackColor = System.Drawing.Color.DarkOrchid
    rpt.Run()
    Me.Viewer1.Document = rpt.Document
End Sub

Remarks

The new sections are added at the inner level of the groups, immediately before and after the Detail section in the report layout.

See Also