ComponentOne FlexReport for WinForms
C1.Win.FlexReport.4.5.2 Assembly / C1.Win.FlexReport Namespace / Field Class / CanGrow Property

In This Topic
    CanGrow Property (Field)
    In This Topic
    Specifies whether the field height should be automatically increased to fit the field's contents.
    Public Property CanGrow As System.Boolean
    public System.bool CanGrow {get; set;}

    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.

    See Also