Creating Dynamic Columns in SSRS 2008

  • Hi

    I am trying to create a dynamic report in ssrs 2008,

    based on the selected parameters i need to populate columns

    for ex in questionno parameter if i select questions 1,3,5,7

    then 4 columns has to be populated in the report ie based on the number of questions selected so many columns has to be added to the report

    also my sp is dynamic so can you please give me some idea to create such report.

    Thanks in Advance,

    Sweatha

  • The easiest way I could see doing this would be to return all columns regardless of what the user selected (having them in the table at least..not necessarily populated, which you can handle with your SP). Set an expression for the Hidden attribute on each optional column of the table to check whether the parameter is checked or not. If it's checked, don't hide. If not checked, hide. etc.

  • Smith, thanks for the response, its and idea but i have 104 columns and 32 tables

    user might select from any of those columns so its not that easy to populate all those and hide the remaining as the join itself might take so long to execute

  • Did anyone ever give a solution to this report? I have the same situation. Thanks.

  • I have a similar issue. I have a stored proc which creates sql dynamically and I have no idea which columns will be returned.

    I need to create a report that will display all columns executed by the sql (similar to how SSMS displays the data in the grid).

    Does anybody know how to do this?

Viewing 5 posts - 1 through 4 (of 4 total)

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