ActiveReports 8
GroupKeepTogether Property
See Also  Example
GrapeCity.ActiveReports.v8 Assembly > GrapeCity.ActiveReports.SectionReportModel Namespace > GroupHeader Class : GroupKeepTogether Property

Glossary Item Box

Gets or sets a value that specifies whether the section and its footer will print as a single block on the same page.

Syntax

Visual Basic (Declaration) 
Public Property GroupKeepTogether As GroupKeepTogether
C# 
public GroupKeepTogether GroupKeepTogether {get; set;}

Property Value

GroupKeepTogether enumeration.   Default is GroupKeepTogether.None.   Possible values are:

  • GroupKeepTogether.All
  • GroupKeepTogether.FirstDetail
  • GroupKeepTogether.None

Example

C#Copy Code
private void groupHeader1_Format(object sender, System.EventArgs eArgs)
{
    this.groupHeader1.GroupKeepTogether = GroupKeepTogether.FirstDetail;
}
Visual BasicCopy Code
Private Sub GroupHeader1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles GroupHeader1.Format
   Me.GroupHeader1.GroupKeepTogether = GroupKeepTogether.FirstDetail
End Sub

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GroupHeader Class
GroupHeader Members
ActiveReports6~GrapeCity.ActiveReports.GroupHeader~KeepTogether