See Also

SectionCollection Class  | SectionCollection Members  | GroupHeader  | GroupFooter  | Section

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

InsertGroupHF Method

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

[Visual Basic]
Public Sub InsertGroupHF()
[C#]
public void InsertGroupHF();

Remarks

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

Example

[C#] 

Private void button2_Click(object sender, System.EventArgs e) 

    DataDynamics.ActiveReports.ActiveReport rpt = New DataDynamics.ActiveReports.ActiveReport(); 
    rpt.Sections.Add(DataDynamics.ActiveReports.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 Basic] 

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    Dim rpt As New DataDynamics.ActiveReports.ActiveReport
    rpt.Sections.Add(DataDynamics.ActiveReports.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

See Also

SectionCollection Class  | SectionCollection Members  | GroupHeader  | GroupFooter  | Section

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.