web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How to hide & show column dynamically in RDLC report.

(0) ShareShare
ReportReport
Posted on by 153

Hi Guys,

Is there is any way, to hide & show column dynamically in RDLC report.

For Example: column should be visible only if there is data in that column, otherwise column will be hide if there is no data in that column.

Let me know, if there are any ways to do this.

I have the same question (1)
  • Suggested answer
    Mohana Yadav Profile Picture
    61,005 Super User 2025 Season 2 on at

    Yes, you can set the Hidden property based on the conditions.

    learn.microsoft.com/.../how-to--apply-conditional-visibility-controls

  • Suggested answer
    CU28050330-0 Profile Picture
    2 on at
    Thanks @Mohana Yadav, that worked perfectly! 

    I was able to set the column visibility using the Hidden property conditionally, just like you suggested. It’s exactly what I needed—now my RDLC report looks much cleaner without empty columns showing up.
  • VK_Karangiya_MCP Profile Picture
    51 on at
    In the RDL file, select the desired column, navigate to its properties, and set the Visibility property using the expression:

    =IIf(Fields!YourField.Value <> "", False, True)

    This configuration ensures that the column remains visible only when YourField contains a non-empty value; otherwise, it will be hidden.



     
  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at
    Hi, You can refer to the standard practices below.
     
    Thanks
    ZHU
  • Suggested answer
    Sohail Ahmed Profile Picture
    11,148 Super User 2025 Season 2 on at

    Maybe this will help you implement it.

     

    Yes, you can dynamically hide or show a column in RDLC based on data using the Visibility expression on the column.

     

    ✅ Steps to Hide Column Dynamically in RDLC:

     

    1.  

      Go to your RDLC layout (in Visual Studio).


    2.  

      Select the column (Textbox or TableCell) you want to hide.


    3.  

      Right-click → Column Visibility.


    4.  

      Set this expression in the visibility condition:



    5.  
     
    =IIf(Fields!MyField.Value = "", true, false)
    
     

    Or if you're checking for NULL:

     
    =IsNothing(Fields!MyField.Value)
    
     

    This will hide the column if the field is empty or null.

     
     

    📝 Note: You must apply this on all cells in the column, including the header.

     
     

    Let me know if you need help with more complex visibility logic.

    Mark below checkbox to make this answer Verified if it helps you.

  • Suggested answer
    RockwithNav Profile Picture
    8,637 Super User 2025 Season 2 on at
    Handling it in RDLC is the easiest approach but it can also be achieved by AL code with dedicated Flags. Code will be exactly the same but it will become a bit simple to understand as the same condition we will be putting in AL.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,362

#2
YUN ZHU Profile Picture

YUN ZHU 867 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans