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.
Visual Basic (Declaration) | |
---|---|
Public Class GroupHeader Inherits Section |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class GroupHeader : Section |
C# | Copy Code |
---|---|
private void groupHeader1_Format(object
sender, System.EventArgs eArgs) |
Visual Basic | Copy Code |
---|---|
Private Sub GroupHeader1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles GroupHeader1.Format |
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).
System.Object
DataDynamics.ActiveReports.Section
DataDynamics.ActiveReports.GroupHeader