See Also

GroupHeader Members  | DataDynamics.ActiveReports Namespace

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

GroupHeader Class

The GroupHeader section prints once for every data group defined using the field specified in DataField property.  A GroupHeader section requires a matching GroupFooter section.

For a list of all members of this type, see GroupHeader members.

Object Model


Inheritance Hierarchy

System.Object
   DataDynamics.ActiveReports.Section
      DataDynamics.ActiveReports.GroupHeader

Syntax

[Visual Basic]
Public Class GroupHeader    Inherits Section
[C#]
public class GroupHeader : Section

Remarks

Since ActiveReports does not sort the data before grouping it, your data source should be sorted on all the data fields that you have specified in group header sections.  For example, for a report to properly create two groups on Country and City data fields you must sort the data by those data fields in the specified order.  If your data is not sorted you end up with the same group appearing multiple times in the report at different locations (i.e. the report is NOT grouped).

Example

[C#] 

private void GroupHeader1_Format(object sender, System.EventArgs eArgs) 

    this.GroupHeader1.ColumnLayout = true; 
    this.GroupHeader1.DataField = "Country"; 
    this.GroupHeader1.GroupKeepTogether = GroupKeepTogether.None; 
    this.GroupHeader1.KeepTogether = true; 
    this.GroupHeader1.NewColumn = NewColumn.None; 
    this.GroupHeader1.NewPage = NewPage.None; 
    this.GroupHeader1.RepeatStyle =  RepeatStyle.None; 
    this.GroupHeader1.UnderlayNext = true; 
}

[Visual Basic] 

Private Sub GroupHeader1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles GroupHeader1.Format
   Me.GroupHeader1.ColumnLayout = True
   Me.GroupHeader1.DataField = "Country"
   Me.GroupHeader1.GroupKeepTogether = GroupKeepTogether.None
   Me.GroupHeader1.KeepTogether = True
   Me.GroupHeader1.NewColumn = NewColumn.None
   Me.GroupHeader1.NewPage = NewPage.None
   Me.GroupHeader1.RepeatStyle = RepeatStyle.None
   Me.GroupHeader1.UnderlayNext = True
End Sub

See Also

GroupHeader Members  | DataDynamics.ActiveReports Namespace

 

 


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