How to achieve static table width while Column Hiding

  • Hi Everyone,

    I have a really frustrating problem that i have not been able to solve for quite some time now.

    Despite looking for a workaround on the internet i still havn't found anything that could work in this regard.

    May be someone can help me out with this here!!!!!

    The issue i have is very basic.

    I have a table that has a fixed number of columns (say 10), and i want to hide 3 of these columns at runtime based on the value of parameter which the user would select..

    This can be easily done by setting the coulmn visibility of each of these 3 columns based on the value of the aforesaid parameter...

    It's perfectly fine uptill here...

    The problem is when the report shows up (with 3 columns hidden) the remaining 7 columns take up the place of the hidden columns and as a result the overall width of the table reduces accordingly...

    I do not want this to happen..i.e. i want the table width to remain constant..

    That is to say the remaining colums' width should somehow be able to expand so that the original overall width of the table remains same...

    Is this possible to achieve....

    Please Help..I really need this to get going asap.

    Thanks In Advance...

  • I don't think there is a way to do this because I don't think you can set the width property using an expression.

    Why do you want it stay the same width?

  • Yeah!! Maybe you're right...Even i have started to believe this can't be done..

    As to why i want it this way -

    The whole report is clouded with report items and other subreports..

    Now this particular table in question(whose columns are to be hidden) shrinks in width at runtime & that too with variation that depends on what columns the user wants to see(this is achieved by getting values through a parameter). This in turn leaves a whitespace (equivalent to the combined width of the hidden columns) adjacent to the table, which makes the report look unformatted !!

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply