Specifies whether the field height should be automatically increased to fit the field's contents.

Namespace:  C1.C1Report
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
[DefaultValueAttribute(false)]
public bool CanGrow { get; set; }
Visual Basic
<DefaultValueAttribute(False)> _
Public Property CanGrow As Boolean
	Get
	Set

Remarks

You can use the CanGrow and CanShrink properties to control the appearance of report fields and sections. When you set both properties to true, the field or section automatically adjusts so any amount of data can be printed. When a field grows or shrinks, the fields below it move down or up the page.

If you set a field's CanGrow property to true, the control automatically sets the CanGrow property of the containing section to true. (However, if you set a control's CanShrink property to true, the control doesn't set the section's CanShrink property to true.)

When you use the CanGrow and CanShrink properties, remember that:

1. The property settings don't affect the horizontal spacing between fields; they affect only the vertical space the fields occupy.

2. The height of a large field can prevent fields beside it from shrinking. For example, if several short controls are on the left side of a report's detail section and one tall control, such as an unbound object frame, is on the right side, the controls on the left won't shrink, even if they contain no data.

The default value for this property is False.

See Also