I am building a report with quite a few tables in it. Based on the data used to populate the report, I need to be able to show or hide the header row of the tables at runtime. How can this be achieved?
Thanks for the reply. I set up some conditional formatting on a table, and was able to set the header cell to invisible. Unfortunately, there is a gap on the report where the header would normally be, as if the cell is invisible but the header row is still there. Is there a way I can hide the header row entirely so there's no gap?
answered on 09 May 2013, 09:30 AM
As you have observed, even when the header is not visible the space taken by it remains. A quick way to make it shrink is to make the header very small at design-time (height 0.1cm for e.g.) or if you want to keep the design-time size normal, you can do it programmatically in the constructor after InitializeComponent().
When you set the table header to be very small when it is visible and it has data, it will grow and look normal run-time, when it is not visible, it won't grow.
Another approach would be to dynamically build the header run-time with code. This way, you will be able to add it only when needed and when not, it won't take any space.
the Telerik team
Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.