Hide Rows of a Grid
Hello, actually I’am testing Fastreport. My Plan ist o use FR and not longer QR.
For the Moment: FR works great. I’am Using FR Professional fort he VCL with Delphi 10.3 and WIN10 64 Bit.
Now I have one Problem or one question.
I have a simple Report with one Data-Band. Inside the Band I have a Grid-Object. I have connect the Grid-Object to a Dataset and I define all fields for each Cell. That all works perfect.
Often (very often) a full row oft he Grid is empty (no Data from left to right fort he full row). This rows I must make not visible (hide the full row). In one Position I must Hide row-1 and in a other position I must hide row-2 and in next position every row must be visible and so on.
How can I make that ?
I try this:
if Trim(<frxDsMaster."fbez1">) = '' then begin
TableRow1.height:=0;
end;
But now he hide the row in all positions.
Comments
Your pb is not very clear : what are 'positions' in your explaination ? May be an image would be usefull.