ActiveReports3 Request technical support
ColumnGroupKeepTogether Property
See Also  Example


Gets or sets a value that specifies whether the group will print as a single block in the same column.

Syntax

Visual Basic (Declaration) 
Public Property ColumnGroupKeepTogether As Boolean
Visual Basic (Usage)Copy Code
Dim instance As GroupHeader
Dim value As Boolean
 
instance.ColumnGroupKeepTogether = value
 
value = instance.ColumnGroupKeepTogether
C# 
public bool ColumnGroupKeepTogether {get; set;}

Return Value

Boolean.

Example

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

Remarks

The Boolean ColumnGroupKeepTogether property will only be implemented when the GroupHeader's GroupKeepTogether property is set to All. 

The purpose of this property is to prevent a group from splitting across columns.  If the group will not fit in the current column, ActiveReports will attempt to render the full group in the next column.  If the group is too large to fit in a single column, this property will be ignored.

See Also