I have tried setting the visibility as you proposed, still the grid is
rendered in PDF output.
More details on the case:
I'm using library. This library contains grid, which has set visibility
property as can be seen below. That grid is placed in the library's master
page header. This master page is located in one template. This template is
then used to dynamically add table using designer API. Output report is
then rendered to PDF. When i try to preview that template in eclipse using
report viewer, then the grid is not rendered in PDF, when i try to render
it using engine API through application, then the grid is rendered.