Xceed Grid for WinForms v4.3 Documentation
KeepTogether Property


Xceed.Grid.v4.3 Assembly > Xceed.Grid.Reporting Namespace > GroupReportStyle Class : KeepTogether Property
Gets or sets a boolean value indicating if the content of the group should be kept together when it is printed in a report.
Syntax
'Declaration
 
<DescriptionAttribute("Indicates if the content of the group should be kept together when it is printed in a report.")>

<CategoryAttribute("Appearance")>

<EndUserGlobalBrowsableAttribute(False)>

<EndUserDisplayNameAttribute("Avoid Splitting Groups")>

Public Property KeepTogether As Boolean
'Usage
 
Dim instance As GroupReportStyle

Dim value As Boolean

 

instance.KeepTogether = value

 

value = instance.KeepTogether
[Description("Indicates if the content of the group should be kept together when it is printed in a report.")]

[Category("Appearance")]

[EndUserGlobalBrowsable(false)]

[EndUserDisplayName("Avoid Splitting Groups")]

public bool KeepTogether {get; set;}

Property Value

true if the content of the group should be kept together when it is printed in a report; false otherwise. By default, DefaultKeepTogether.
Remarks

The value of the KeepTogether property will not be inherited from its parent in the case where it has not been explicitly set (non-ambient).

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

GroupReportStyle Class
GroupReportStyle Members