Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Show/Hide columns in report.rdlc localreport

Show/Hide columns in report.rdlc localreport

Scheduled Pinned Locked Moved ASP.NET
questiondesign
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 4382232
    wrote on last edited by
    #1

    I designed a localreport with a number of columns but would like to show or hide columns at runtime using a report parameter which I set through the aspx page. How do I set the column visiblity at design/runtime according to the parameter value?

    P 1 Reply Last reply
    0
    • M Member 4382232

      I designed a localreport with a number of columns but would like to show or hide columns at runtime using a report parameter which I set through the aspx page. How do I set the column visiblity at design/runtime according to the parameter value?

      P Offline
      P Offline
      Paddy Boyd
      wrote on last edited by
      #2

      Can you use an IIF expression in the visibility property?

      M 2 Replies Last reply
      0
      • P Paddy Boyd

        Can you use an IIF expression in the visibility property?

        M Offline
        M Offline
        Member 4382232
        wrote on last edited by
        #3

        Thanx, I did the following: In the tableColumn visiblity i managed to add an IIf expression which test the parameter. Thanx again, Corna

        A 1 Reply Last reply
        0
        • P Paddy Boyd

          Can you use an IIF expression in the visibility property?

          M Offline
          M Offline
          Member 4382232
          wrote on last edited by
          #4

          Hi, Do you by any change have an example of how to print a local report. I've tried the msdn example but can't seem to get it working. Thanx

          1 Reply Last reply
          0
          • M Member 4382232

            Thanx, I did the following: In the tableColumn visiblity i managed to add an IIf expression which test the parameter. Thanx again, Corna

            A Offline
            A Offline
            anshul31
            wrote on last edited by
            #5

            Thanks Corna, but can u give me a sample code as how u are disabling a column, my problem is I don't want to show column when viewing a report, but when exporting it needs to be there as hidden column in EXCEL. Anshul

            M 1 Reply Last reply
            0
            • A anshul31

              Thanks Corna, but can u give me a sample code as how u are disabling a column, my problem is I don't want to show column when viewing a report, but when exporting it needs to be there as hidden column in EXCEL. Anshul

              M Offline
              M Offline
              Member 4382232
              wrote on last edited by
              #6

              Didn't try/need this before, I will see if I can find something like this.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups