To ensure that the following rows automatically shift upwards without leaving any empty gaps:
Hide the entire band (DataBand / ChildBand) or the TableRow itself, rather than the TextObject — either via the VisibleExpression property (e.g., [Row.Amount] != 0) or in the BeforePrint event (Data1.Visible = false;). When the band itself is hidden, the following rows are immediately shifted upwards (Top = 0).
If there are several independent fields one below the other on a single DataBand and only some of them need to be hidden: separate them into individual ChildBands with CanShrink = true or into separate TableObject rows / set Dock = DockStyle.Top and CanShrink = true for the objects within the band.
Comments
Hello!
To ensure that the following rows automatically shift upwards without leaving any empty gaps:
Hide the entire band (DataBand / ChildBand) or the TableRow itself, rather than the TextObject — either via the VisibleExpression property (e.g., [Row.Amount] != 0) or in the BeforePrint event (Data1.Visible = false;). When the band itself is hidden, the following rows are immediately shifted upwards (Top = 0).
If there are several independent fields one below the other on a single DataBand and only some of them need to be hidden: separate them into individual ChildBands with CanShrink = true or into separate TableObject rows / set Dock = DockStyle.Top and CanShrink = true for the objects within the band.