How to make always visible data band header?

edited March 2021 in FastReport .NET

Hello,

I have two data bands. This data bands has headers for table header. They are targeting same source with different filter.

First Data band has filter (Type == "t1")

Second Data band has filter (Type == "randokasdklajsd")

Second grid should be empty. Its ok. But It's headers should be visible. How can i do that ? How can i make it always visible.

Comments

  • Hello!

    Move the fixed header not into the DataHeaderBand, but into an independent ChildBand (for example, a child band linked to the first DataBand via DataFooter, or a separate header band that is independent of the filter in the second DataBand).

    Alternatively, create an empty DataBand without a DataSource (which by default is printed exactly once) with the required header directly above the filtered DataBand2 (and in DataBand2, either do not use a DataHeaderBand, or in the BeforePrint method, replace the source with a single empty placeholder containing an empty string).

This discussion has been closed.